Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
1
Question by bsodman · Jan 03, 2013 at 04:43 PM · editorcustomizationeditor extensionversion controlcontextmenu

Extending the Project View

I need to be able to perform a function on any asset in the Project View (FBX file, material, prefab, etc...) for version-control purposes.

I would be perfectly happy doing this in any number of ways:

Adding a context menu option, Adding a drop-down menu to the top of the Project view (like the Create drop-down), Adding a button (somehow) to the Project pane, etc.

Is there any way to do this? I would prefer not having to add a top-level menu item (File, Edit, etc) for ease of use, but if there's nothing better...

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
-1
Best Answer

Answer by MibZ · Jan 03, 2013 at 04:46 PM

That could be done with an Editor Script! Everything you see when you use Unity other than the top windows/mac window bar is created using Editor Scripts written by the Unity dev team, and any window they have made inside of Unity can be recreated by anyone who wants to write their own Editor extensions.

Comment
Add comment · Show 2 · 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 bsodman · Jan 03, 2013 at 06:02 PM 0
Share

Yes, and I feel comfortable in using Editor scripts to create custom editors and custom inspectors, but NOT in extending already-existing default Unity editors, like the Project view. I haven't been able to find documentation for hooking into those default views, but maybe I've just missed it.

avatar image MibZ · Jan 03, 2013 at 06:31 PM 0
Share

I found that there is a bool you can set to draw the default Inspector view, I imagine there is functionality for other important views as well.

Editor.DrawDefaultInspector

avatar image
2

Answer by jhand · Jan 17, 2017 at 06:17 PM

You already accepted the other answer here but from the way I read it, you were hoping to find a way to extend the actual Project View. I'll give my answer, in case others thought the same.

According to UnityDecompiled, the Project Browser (along with other editor windows) are internal to Unity and can't be edited. Therefore you may have to reverse engineer the existing project view. I ran into this same problem with the Sprite Editor Window I wanted to extend, but found the class was internal.

https://github.com/MattRix/UnityDecompiled/blob/master/UnityEditor/UnityEditor/ProjectBrowser.cs

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

10 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

Related Questions

Creating a template project for non-programmers for research purposes 0 Answers

ShaderGraph-like EditorWindow 0 Answers

Is there a way to avoid the Animation window drop-down menu with a selected Animator? 0 Answers

How to assign a joint's 'connected body'? 1 Answer

Drag editing on a EditorGUILayout.FloatField 1 Answer


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