Class ActiveController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Manages the activeSelf of MonoBehaviour.
Default strategies are as follows: TargetController uses ActiveWhileTracked by default, XROriginChildController uses ActiveAfterFirstTracked by default.
Can use OverrideStrategy to override the default strategy. Setting MonoBehaviour.enabled to false disables the control.
[DisallowMultipleComponent]
public class ActiveController : MonoBehaviour
- Inheritance
-
ActiveController
Properties
OverrideStrategy
Override strategy, can be used to override default behavior.
Null value indicates using the default strategy, the strategy pattern is related to other components on the object. Having a value will override the default strategy.
public Optional<ActiveController.Strategy> OverrideStrategy { get; set; }
enabled
ARSession enables/disables active control at runtime. When disabled, EasyAR will no longer modify activeSelf.
public bool enabled { get; set; }