TargetController Class

Description

在场景中控制跟踪目标的 MonoBehaviour ,在Unity环境下提供功能扩展。


Properties

ActiveController

C#

public ActiveController ActiveController { get; }

GameObject .activeSelf控制器。

MonoBehaviour .enabled为false可关闭控制。

IsTracked

C#

public bool IsTracked { get; }

目标是否被跟踪。


Events

TargetFound

C#

public event Action TargetFound

找到跟踪目标的事件。

TargetLost

C#

public event Action TargetLost

丢失跟踪目标的事件。