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.


Properties

ActiveController

C#

public ActiveController ActiveController { get; }

GameObject .activeSelf controller.

Set MonoBehaviour .enabled to false to turn off control.

IsTracked

C#

public bool IsTracked { get; }

Is target being tracked.


Events

TargetFound

C#

public event Action TargetFound

Tracking target found event.

TargetLost

C#

public event Action TargetLost

Tracking target lost event.


Methods

AlignTo

C#

public void AlignTo( Vector2 pointInView)

Sets the tracking target to a point on camera image. pointInView should be normalized to [0, 1]^2.

Only usable when it is SurfaceTrackerFrameFilter.Target .