- Home /
enum like field that updates its contents?
I've started messing around with editor scripts and I'd like to create an Enum like selection field that updates as you select things
Right now when you click the "add" button, it adds a new object to a list that contains an enum and an int value
if you click add again, it will add another element, but since its an enum, "hp" is still available - I'd like to remove the option to add a duplicate variable if one has already been selected.
I'd like to retain the enum like selection field, but update the options as they are added, if that makes sense. Any suggestions? Thanks!
Your answer
Follow this Question
Related Questions
Query renderer.materials in prefabs in Editor without changing to instance 2 Answers
[solved]Using WWW instead of resources.load causes hang 1 Answer
Does code wrapped in #if UNITY_EDITOR appear anywhere in builds? 3 Answers
When do the Attributes get set? 1 Answer
5.3 Multi scene editor Selection 0 Answers