Class ActiveController
- Namespace
- easyar
- Assembly
- EasyAR.Sense.dll
Manage activeSelf of MonoBehaviour.
The default strategy is as follows: TargetController by default uses ActiveWhileTracked, and XROriginChildController by default uses ActiveAfterFirstTracked.
Can be used to override the default strategy with OverrideStrategy. Setting MonoBehaviour.enabled to false can disable the control.
[DisallowMultipleComponent]
public class ActiveController : MonoBehaviour
- Inheritance
-
ActiveController
Properties
OverrideStrategy
Override strategy, can be used to override default behavior.
Null values use the default strategy; strategy mode is related to other components on the object. Non-null values will override the default strategy.
public Optional<ActiveController.Strategy> OverrideStrategy { get; set; }