Please tell me if this is in wrong forum area. And point me to the right.
When I try to make understandable and clear thread, it usually ends up being all messy… So hang on.
Playing with Unity and stuff in it, decided to make spaceship and add turret to it.
It’s about Enum, I have tType (its a shorten of turretType) of Projectile and Beam.
Now, there are going to be lots of different variables in the Inspector view. I’d like to show variables for the beamy stuff when Beam is selected in enum drop down thingy, and projectile stuff when Projectile is selected.
I tried looking at Custom Editor, but I have never touched that before so I don’t know.
Also I tried having certain variables in ‘function OnValidate ()’ and inside there I had ‘if tType == Projectile’ where the variables were, but I could not use the variables then.
Thanks in advance.