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 /
  • Help Room /
avatar image
0
Question by alexanderameye · Nov 30, 2016 at 02:35 PM · editor-scriptingeditorwindowcustom editorwindowcustom-inspector

Custom inspector Vs. Custom window

Hello guys,

for an asset I'm making, I need a very customizable sort of inspector that makes it very easy and intuitive for the user to use my asset's features. Right now I'm creating custom editor scripts that go inside the Editor folder. With this I can creat kind of custom inspectors with buttons, lists etc. Now I was wondering, there is also something like creating a custom window for your asset? What would be the difference between creating a custom inspector and creating a whole new custom window. And what are the (did)advantages? Thanks a lot!

Alexander

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

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Adam-Mechtley · Nov 30, 2016 at 02:48 PM

Hi @alexanderameye. Basically, you should create a custom inspector if all of your controls just related to a particular object being inspected (i.e. selected). If your tool interacts with other objects in your project besides just the selected one, then an EditorWindow is the way to go.

That said, there are some places in the editor where we currently do sort of a hybrid. For example, in the inspector for a ParticleSystem, there is a button to view the controls in a separate window instead, which lets you see more information easily, since most users generally have a fairly narrow Inspector.

Comment
Add comment · Show 3 · 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 alexanderameye · Nov 30, 2016 at 02:54 PM 0
Share

Hey thanks for the answer!

And is there no difference in terms of possible functionality between the inspector and a separate window? Or is the one easier than the other to script?

avatar image Adam-Mechtley alexanderameye · Nov 30, 2016 at 03:18 PM 1
Share

Neither is easier or more difficult necessarily, they just fulfill different roles. An inspector (i.e. Editor) is initialized for a particular target object or set of objects and so has some conveniences related to editing those objects. For example, it automatically creates a SerializedObject representation of the targets and responds to callbacks like OnSceneGUI(), for doing things like drawing handles.

avatar image alexanderameye · Nov 30, 2016 at 02:56 PM 0
Share

And thank you for that ParticleSystem reference, I'll definitely take a look at that!!

avatar image
0

Answer by makaka-org · Feb 04, 2018 at 04:24 PM

☄ Dynamic menu, Flexible Image & Field Icons in Publisher Component

Publisher Component is a decoration for your script inspector.
Now your product will always look cool.

☄ Download: http://u3d.as/YZ3
☄ Documentation: https://makaka.org/publisher-tools-unity-asset-store/

☄ Video: https://www.youtube.com/watch?v=jFOt0B2AinY

alt text



☄ Header Image & buttons with links in Publisher Window

Publisher Window is a welcome screen where the user can learn all the important information about the product (unity asset or project) and your company by visiting important links.

☄ Download: http://u3d.as/HKG
☄ Documentation: https://makaka.org/publisher-tools-unity-asset-store/

☄ Video: https://www.youtube.com/watch?v=RQ2fxox_JkU

alt text

Comment
Add comment · 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

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

65 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to access a Custom Editor components 1 Answer

EditorWindow and serialization of scene objects 0 Answers

Disable the selection box in the editor scene 2 Answers

How to get rect a window of editor? 0 Answers

UIElements - Horizontal scrolling is not working in ScrollView even with ScrollViewMode.Horizontal. 0 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