Search Results for

    Show / Hide Table of Contents

    Struct StateInformation

    The StateInformation is a struct created for state change requests. It holds the information of the request to the statemachine.

    Namespace: Static
    Assembly: Assembly-CSharp.dll
    Syntax
    public struct StateInformation

    Constructors

    | Improve this Doc View Source

    StateInformation(String, String, InteractionType, String, GameObject, GameObject)

    Constructor of the StateInformation struct.

    Declaration
    public StateInformation(string primaryObjectName = "", string secondaryObjectName = "", InteractionType interactionType = InteractionType.Custom, string parameter = " ", GameObject firstGameObject = null, GameObject secondGameObject = null)
    Parameters
    Type Name Description
    System.String primaryObjectName
    System.String secondaryObjectName
    InteractionType interactionType
    System.String parameter
    GameObject firstGameObject
    GameObject secondGameObject

    Fields

    | Improve this Doc View Source

    firstGameObject

    The primary GameObject request of this request.

    Declaration
    public GameObject firstGameObject
    Field Value
    Type Description
    GameObject
    | Improve this Doc View Source

    interactionType

    The type of interaction that is requested.

    Declaration
    public InteractionType interactionType
    Field Value
    Type Description
    InteractionType
    | Improve this Doc View Source

    parameter

    The parameter that is passed with the request. E.g. for custom actions or questionnaires this can also be the only thing that is checked against by the statemachine.

    Declaration
    public string parameter
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    primaryObjectName

    The primary object of this request.

    Declaration
    public string primaryObjectName
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    secondaryObjectName

    The secondary object of this request (e.g. for a combination, the object that is not grabbed)

    Declaration
    public string secondaryObjectName
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    secondGameObject

    The secondary GameObject request of this request.

    Declaration
    public GameObject secondGameObject
    Field Value
    Type Description
    GameObject
    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation