Table of Contents

Class ActiveController

Namespace
easyar
Assembly
EasyAR.Sense.dll

A MonoBehaviour that manages activeSelf.

The default strategies are: TargetController uses ActiveWhileTracked by default, and XROriginChildController uses ActiveAfterFirstTracked by default.

You can use OverrideStrategy to override the default strategy. Set MonoBehaviour.enabled to false to turn off control.

[DisallowMultipleComponent]
public class ActiveController : MonoBehaviour
Inheritance
ActiveController

Properties

OverrideStrategy

Override strategy, used to override the default behavior.

A null value means using the default strategy. The strategy mode is related to other components on the object. A non-null value overrides the default strategy.

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

enabled

Enables/disables active control while ARSession is running. When disabled, EasyAR will no longer modify activeSelf.

public bool enabled { get; set; }