|
hi im still really confused on how i get a specific selection, sorry to be a pain but i learn as i work, here is my sample code, is there also a way to make a sub menu bit like the component menu and how would this be done if easier
(comments are locked)
|
|
The only way to do this is by using a custom Editor subclass for your entire object. You are then free to present the UI any way you like. The simplest would be just to use DrawDefaultInspector, then add an error message if the settings violate whatever rules you want to enforce (eg. not AddComponent and Gameobject). BTW, it seems you're using the first enum item purely to get text in the menu. It is probably cleaner to just have a "None" option, and ensure that the name of the variable is meaningful:
(comments are locked)
|

Just for clarification - are you talking about a Unity Editor menu?
yes for the editor in java as my script is actually for game stuff
i cant seem to work it out i need to say only show 1 to3 and for something else only show 3 to 5, or i would rather have target = list a but if i select this then target = list b
Oh, just added an answer - and now I'm not sure I'm answering the right question! Sorry if that isn't what you are after...
well its to do with the editor but not really anything to do with the question