Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 cool.rajat · Apr 02, 2013 at 09:04 AM · pluginide

I want to add a custom menu to Unity IDE

I want to add a new custom menu to the UNITY IDE so that i can run custom scripts to package the application rather than packing it in the way that unity provides.

Basically i want to extend the functionality of Unity IDE something similar to a plugin development for eclipse.

I came to know about Editor scripts but it seems these are used for making new windows only.
Also the plugins in unity is a different concept and it is used in extending the flash functionality.

I am new to Unity so please guide me even if it is something very easy.

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 whydoidoit · Apr 02, 2013 at 09:53 AM

In any class derived from EditorWindow you can ignore the window stuff and just make a menu:

  [MenuItem("Window/SubMenu/Click Me", false, 0)]
  static void DoSomething()
  {
  }
Comment
Add comment · Show 6 · 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 whydoidoit · Apr 02, 2013 at 09:55 AM 0
Share

You can also add to the context menu/create new item menu etc.

avatar image cool.rajat · Apr 02, 2013 at 11:24 AM 0
Share

Does this mean that the custom menu's are limited to a single project in which that script resides.

Can we write a script which can be used for all the projects that are being created in the IDE i.e $$anonymous$$enuItems similar to the one that IDE currently has (File/Build & Run) which is same for all the projects being created.

avatar image whydoidoit · Apr 02, 2013 at 11:53 AM 0
Share

Only if you include the scripts or compile them into a DLL which is placed in the new project.

avatar image whydoidoit · Apr 02, 2013 at 11:54 AM 0
Share

Normally you make a set of packages that you use to import common scripts into new projects. Turn on .meta files if you do this to try and keep the versions together.

avatar image cool.rajat · Apr 02, 2013 at 12:03 PM 0
Share

Thanks WhyDoidoit. As of now i don't know about the concept of meta files and creating dll for a single script. I have to investigate more.

Show more comments

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

11 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

Related Questions

How to place Adv Vertically 1 Answer

How Set Java Plugin on Unity? 0 Answers

Make iOS build using Multiplatform Toolkit?? 2 Answers

Attach a script to GameObject in a DLL 0 Answers

Unity + AR = .exe 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