Class SessionStateSwitchUnit
A switch unit that breaks down an ARSessionState and triggers one of multiple control outputs based on the state value.
Namespace: UnityEngine.XR.ARFoundation.VisualScripting
Assembly: Unity.XR.ARFoundation.VisualScripting.dll
Syntax
public sealed class SessionStateSwitchUnit : Unit
Properties
checkingAvailability
Flow output if AR Session state is CheckingAvailability.
Declaration
public ControlOutput checkingAvailability { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
flowIn
Flow input.
Declaration
public ControlInput flowIn { get; }
Property Value
Type | Description |
---|---|
ControlInput |
installing
Flow output if AR Session state is Installing.
Declaration
public ControlOutput installing { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
needsInstall
Flow output if AR Session state is NeedsInstall.
Declaration
public ControlOutput needsInstall { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
none
Flow output if AR Session state is None.
Declaration
public ControlOutput none { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
ready
Flow output if AR Session state is Ready.
Declaration
public ControlOutput ready { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
sessionInitializing
Flow output if AR Session state is SessionInitializing.
Declaration
public ControlOutput sessionInitializing { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
sessionStateIn
ARSessionState input.
Declaration
public ValueInput sessionStateIn { get; }
Property Value
Type | Description |
---|---|
ValueInput |
sessionTracking
Flow output if AR Session state is SessionTracking.
Declaration
public ControlOutput sessionTracking { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
unsupported
Flow output if AR Session state is Unsupported.
Declaration
public ControlOutput unsupported { get; }
Property Value
Type | Description |
---|---|
ControlOutput |
Methods
Definition()
Unit definition.
Declaration
protected override void Definition()