Introduction

The SelectedState class gives you information about what the user has selected in the app. This includes which ElementSave (that is ScreenSave, ComponentSave, or StandardElementSave)/ InstanceSave/ StateSave is selected.

Simple example:

To get the current ScreenSave:

var currentScreen = Gum.ToolStates.SelectedState.Self.SelectedScreen;

To get the current InstanceSave:

var currentInstance = Gum.ToolStates.SelectedState.Self.SelectedInstance;




Last edited Sep 10, 2014 at 10:47 PM by vchelaru, version 2

Comments

No comments yet.