Table of Contents

Class StateRequestSimulator

Namespace
Others

Developer Utility. The StateRequestSimulator allows to test the visual scripting stateflows in the editor by simulating requests to the statemachine manually. This is attached to the framework but not active by default. To use it, the PlayModeButtonOverride has to be deactivated/deleted so the playmode can be entered. The StateRequestSimulator is attached to the root object of the TrainAR framework and can then be used in the Hierarchy.

public class StateRequestSimulator : MonoBehaviour
Inheritance
object
StateRequestSimulator

Fields

interactionType

What kind of interaction should be requested.

public InteractionType interactionType

Field Value

InteractionType

Default is Interact.

parameter

What parameter should be requested.

public string parameter

Field Value

string

Default is "".

primaryObjectName

What is the TrainAR object name of the first object.

public string primaryObjectName

Field Value

string

Default is "".

secondaryObjectName

What is the TrainAR object name of the second object.

public string secondaryObjectName

Field Value

string

Default is "".