Hello,
Let’s say that I have enums.
public enum StoryUIButton
{
Music,
SoundEffects,
PauseAndResume,
Continue,
Restart,
MainMenu,
NextLevel,
};
public StoryUIButton ThisStoryButtonIsFor;
Now based upon the value I select for “ThisStoryButtonIsFor” in the inspector, I want to expose a certain set of variables?
// If is a Music Button, this should be exposed, else hide in the inspector pane
public UISprite EnabledSprite, DisabledSprite;
// If it is a PauseAndResume button -> this variable should be exposed, else hide in the inspector pane
public Transform MultiplierLabel, ScoreLabel, BaseHUD;
// If it is a Continue button -> this variable should be exposed, else hide in the inspector pane.
public Transform [] HUDWings = new Transform [3];
Is it possible? If so how?
Thank you and your help is always appreciated.
Karsnen