Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Eketek · Aug 31, 2011 at 02:31 AM · cameraeditorscenecustomsceneview

How can I make a custom 3d editor within the Unity editor?

I want a programatically controllable view port within the Unity Editor. I want mouse and keyboard events too...

I am working on a project that involves click & drag work to create many game objects. I want my puzzle editor to be integrated into the Unity Editor, so that I can take full advantage of its features.

I scoured the documentation up and down, but was unable to find useful information about producing a custom 3d view port within the editor. I did find some functions that rendered objects, but failed to do any depth buffering.

At present, I am using an autohotkey script to capture mouse movement and feeding it into an editor script. That editor script hijacks a camera from an [undocumented] SceneView object, to do what I want.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Waz · Aug 31, 2011 at 04:31 AM

Sounds to me like you're working too hard against the flow. Unity is a highly extensible editor, but you seem to be trying to replace rather than extend. Check out Handles and Editor.OnSceneGUI, you'll see it's possible to create pretty powerful custom object editing, without trying to subjugate existing editor functionality.

BTW, specifically for controlling the viewport, there are Related Question which answer that..

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Eketek · Sep 04, 2011 at 07:01 AM 0
Share

I do intend to replace some of the editor's functionality. I think that is part of the idea behind making the editor scriptable...

The Unity editor is great for placing individual objects and modifying their properties. It doesn't seem so good for placing many objects with a fairly uniform set of properties (with some procedural geometry).

All I need is a box in the Editor that renders my scene (defined by a standard Camera) and mouse & key events from that box while focused.

avatar image Waz · Sep 04, 2011 at 11:44 AM 0
Share

I'm guessing you intended to comment on my answer, not add a second answer.

avatar image The-Oddler · Sep 04, 2011 at 11:52 AM 1
Share

I would suggest looking at how to extend the editor, and first mastering that. I might be wrong, but it looks like this is the first thing you want to do with Unity, without mastering the basics first. Then try it again yourself, and then when you still have some problems ask more specific en smaller question.

avatar image Waz · Sep 04, 2011 at 12:09 PM 0
Share

Yes, extending, not replacing, is the well-supported norm. $$anonymous$$aybe Unity is wrong there, but I've not seen any problem yet.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Setting the SceneView View Angle/Position? 1 Answer

Override scene view grid with my own? 0 Answers

Modify SceneCamera's position in script? 2 Answers

Problem accessing the scene camera 1 Answer

Editor Camera Orthograpric Control 5 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges