TargetController Class

Description

MonoBehaviour which controls Target in the scene, providing a few extensions in the Unity environment.


Enums

public enum TargetController.ActiveControlStrategy

Strategy to control the GameObject .active.


MonoBehaviour Messages

protected virtual void Start()


Fields

ActiveControl

C#

public TargetController.ActiveControlStrategy ActiveControl

Strategy to control the GameObject .active. If you are willing to control GameObject .active or there are other components controlling GameObject .active, make sure to set it to TargetController.ActiveControlStrategy.None .


Properties

IsTracked

C#

public bool IsTracked { get; }

Is the target being tracked at the moment.

IsLoaded

C#

public bool IsLoaded { get; protected set; }

Is the target loaded by a tracker.


Events

TargetFound

C#

public event Action TargetFound

Target found event.

TargetLost

C#

public event Action TargetLost

Target lost event.