Hide fields depended on enum selection
I have tried to google a bit and found this https://answers.unity.com/questions/192895/hideshow-properties-dynamically-in-inspector.html But i am having a bit of a hard time trying to implement it as im not sure how to do it based on the selection of a enum.
Depended on what selection i have in my enum, ill try to do an example here -> public enum Options { foo, bar };
then if i select foo,i would like -> public int option1; to show up. If i select Bar, i dont want it to show up in the editor.
How would i be able to go about solving this?
Im sorry about it being messed up and in one block, i had separated it with line shifts, but it seems like it removed those.
Your answer

Follow this Question
Related Questions
Switch Statement Gives Error PLEASE HELP!!! 2 Answers
How can I use an "Enum e" I passed from another script in an If or Switch Statement 1 Answer
Can I freeze or disable a GameObjecy? 2 Answers
serializedObject.FindProperty working on Windows, not working on Mac. 0 Answers
I Keep Getting Error CS0052 1 Answer