Table of Contents

Class ActiveController

命名空间
easyar
程序集
EasyAR.Sense.dll

管理activeSelfMonoBehaviour

默认策略如下:TargetController默认使用ActiveWhileTrackedXROriginChildController默认使用ActiveAfterFirstTracked

可以使用OverrideStrategy来覆盖默认策略。设置MonoBehaviour.enabled为false可关闭控制。

[DisallowMultipleComponent]
public class ActiveController : MonoBehaviour
继承
ActiveController

属性

OverrideStrategy

覆盖策略,可用于覆盖默认行为。

空值表达使用默认策略,策略模式与物体上其它组件相关。有值会覆盖默认策略。

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