SelectedState
Introduction
Simple example:
var currentScreen = Gum.ToolStates.SelectedState.Self.SelectedScreen;var currentInstance = Gum.ToolStates.SelectedState.Self.SelectedInstance;Last updated
Was this helpful?
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.
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 updated
Was this helpful?
Was this helpful?

