Show / Hide Table of Contents

    SDK APIs


    Tracking and Lost interface

    The script component ModelTargetBehaviour provides the event callback mechanism on the ModelTarget object.

    //register event listener
    private void Awake()
    {
        AddEventListener(Void3DEvent.FIND, OnFind);
        AddEventListener(Void3DEvent.LOST, OnLost);
    }
    //start tracking
    public void StartTracking()
    {
        base.StartTracking();
    }
    //do Find event
    private void OnFind(Void3DEvent evt)
    {
        //Debug.Log("---ModelTargetBehaviour + OnFind");
    	//Add your logic...;
    }
    
    //do Lost event
     private void OnLost(Void3DEvent evt)
    {
        //Debug.Log("---ModelTargetBehaviour + OnLost");
        //Add your logic...
    }
    
    Back to top Generated by DocFX