Class SessionStateChangedEventUnit
Uses stateChanged to listen for an AR Session state changed event, then fires the same event on the visual scripting event bus.
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. |