docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SessionStateChangedEventUnit

    Uses stateChanged to listen for an AR Session state changed event, then fires the same event on the visual scripting event bus.

    Inheritance
    object
    SessionStateChangedEventUnit
    Namespace: UnityEngine.XR.ARFoundation.VisualScripting
    Assembly: Unity.XR.ARFoundation.VisualScripting.dll
    Syntax
    public sealed class SessionStateChangedEventUnit : GlobalEventUnit<ARSessionState>

    Properties

    hookName

    The hook name.

    Declaration
    protected override string hookName { get; }
    Property Value
    Type Description
    string

    sessionStateOut

    ARSessionState output.

    Declaration
    public ValueOutput sessionStateOut { get; }
    Property Value
    Type Description
    ValueOutput

    Methods

    AssignArguments(Flow, ARSessionState)

    Assigns the state to flow.

    Declaration
    protected override void AssignArguments(Flow flow, ARSessionState state)
    Parameters
    Type Name Description
    Flow flow

    The flow.

    ARSessionState state

    The session state.

    Definition()

    Unit definition.

    Declaration
    protected override void Definition()

    StartListening(GraphStack)

    Fired once on startup for each instance of this unit in the scene.

    Declaration
    public override void StartListening(GraphStack stack)
    Parameters
    Type Name Description
    GraphStack stack

    The graph stack.

    StopListening(GraphStack)

    Fired once on teardown for each instance of this unit in the scene.

    Declaration
    public override void StopListening(GraphStack stack)
    Parameters
    Type Name Description
    GraphStack stack

    The graph stack.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)