Class SessionStateChangedEventUnit
Uses state
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
ARSession
Declaration
public ValueOutput sessionStateOut { get; }
Property Value
Type | Description |
---|---|
Value |
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. |
ARSession |
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 |
---|---|---|
Graph |
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 |
---|---|---|
Graph |
stack | The graph stack. |