ActiveController Class

Description

MonoBehaviour which manages GameObject .activeSelf.

Default strategy is ActiveController.Strategy.ActiveWhileTracked for TargetController , and ActiveController.Strategy.ActiveAfterFirstTracked for XROriginChildController .

Use ActiveController.OverrideStrategy to override default strategy. Set MonoBehaviour .enabled to false to turn off control.


Enums

public enum ActiveController.Strategy

The control strategy for GameObject .activeSelf.


Properties

enabled

C#

public bool enabled { get; set; }

Enable/Disable active control. When disabled, GameObject .activeSelf will not be changed by EasyAR.

OverrideStrategy

C#

public Optional< ActiveController.Strategy > OverrideStrategy { get; set; }

Override strategy, which can override default behavior.

Empty value indicates using the default strategy, which is related to other components on the GameObject. If set, this will override the default strategy.