예제 #1
0
    // Use this for initialization
    void Start()
    {
        if (!filter)
        {
            filter = GetComponentInChildren <MeshFilter>();
        }
        rendStartBounds = filter.mesh.bounds;

        if (!arucoManager)
        {
            arucoManager = FindObjectOfType <ZEDArUcoDetectionManager>();
        }
        if (!arucoManager)
        {
            Debug.LogError("No ZEDArUcoDetectionManager in the scene.");
        }
        markerSize = arucoManager.markerWidthMeters;

        SetScale();
    }
예제 #2
0
 protected virtual void OnDestroy()
 {
     ZEDArUcoDetectionManager.DeregisterMarker(this);
 }
예제 #3
0
 // Use this for initialization
 protected virtual void Start()
 {
     ZEDArUcoDetectionManager.RegisterMarker(this); //Tells ZEDArUcoDetectionManager to tell us when our marker is detected.
 }