Class ActiveController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Manages the activeSelf of MonoBehaviour.
The default strategy is as follows: TargetController uses by default ActiveWhileTracked, XROriginChildController uses by default ActiveAfterFirstTracked.
You can use OverrideStrategy to override the default strategy. Set MonoBehaviour.enabled to false to disable the control.
[DisallowMultipleComponent]
public class ActiveController : MonoBehaviour
- Inheritance
-
ActiveController
Properties
OverrideStrategy
Override strategy, which can be used to override the default behavior.
A null value indicates using the default strategy; the strategy pattern is related to other components on the object. A non-null value will override the default strategy.
public Optional<ActiveController.Strategy> OverrideStrategy { get; set; }