Instance Methods
-
endState() ARCore/central.js, line 94
-
Ends the states previously set by this StateTracker without starting a new state.
-
setState(newState, data) ARCore/central.js, line 72
-
Sets the user's state. This ends the state previously set by this StateTracker, but not states set by other StateTrackers, so users can be in multiple states at the same time, but a StateTracker can only track on state at a time.
Argument Type Attributes Description newState
String The name of the new state.
data
Any <optional>
Arbitrary data to associate with the state. Must be JSON-serializable.