SurfaceTargetController Class¶
Description¶
MonoBehaviour which controls surface target in the scene. The surface target is a virtual node, representing the relative node when the camera moves in surface tracking.
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.