I’ve been practicing with the Unity Custom Editor and using both C# and JS. I’m doing a simple editor script that uses an enum to have a dropdown menu to change the value of an int. I got it to work in C# but not JS. Is there something I’m doing wrong? Here’s what I have, any help would be appreciated.
The syntax is different than C# so I tried a few things and got it working great. I searched for about a day straight looking for a solution but found none. So if you’re like me looking for an answer, here it is. I hope it helps whoever is looking for the same thing.
In JS, this allows you to edit an int from another script using a fancy enum pulldown menu in the Inspector using the Custom Editor in Unity.