class WayspotAnchorTracker (Niantic.ARDK.Extensions.WayspotAnchorTracker)

Overview

Add this component to a GameObject and call the AttachAnchor(anchor) method to have the GameObject's transform automatically moved to match the transform of its WayspotAnchor. More...

class WayspotAnchorTracker: MonoBehaviour {
public:
    // properties

    IWayspotAnchor WayspotAnchor;

    // methods

    void AttachAnchor(IWayspotAnchor anchor);
};

Detailed Documentation

Add this component to a GameObject and call the AttachAnchor(anchor) method to have the GameObject's transform automatically moved to match the transform of its WayspotAnchor.

注釈

Extend this class and override its' virtual methods to implement custom behavior. For an example, see the ColorChangingTracker class in the ARDK-Examples project (part of the WayspotAnchors scene).

Methods

void AttachAnchor(IWayspotAnchor anchor)

Link an anchor to automatically surface the anchor's status code and transform updates through this component.