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; }