Class TargetController
- 命名空間
- easyar
- 組件
- EasyAR.Sense.dll
在場景中控制跟蹤目標的MonoBehaviour,在Unity環境下提供功能擴展。
[DisallowMultipleComponent]
[RequireComponent(typeof(ActiveController))]
public abstract class TargetController : MonoBehaviour
- 繼承
-
TargetController
- Derived
屬性
ActiveController
activeSelf控制器。
MonoBehaviour.enabled為false可關閉控制。
public ActiveController ActiveController { get; }
IsTracked
目標是否被跟蹤。
public bool IsTracked { get; }
事件
TargetFound
找到跟蹤目標的事件。
public event Action TargetFound
TargetLost
丟失跟蹤目標的事件。
public event Action TargetLost