コード例 #1
0
    private void OnTrackingFound()
    {
        Renderer[] rendererComponents = GetComponentsInChildren <Renderer>(true);
        Collider[] colliderComponents = GetComponentsInChildren <Collider>(true);

        // Enable rendering:
        foreach (Renderer component in rendererComponents)
        {
            component.enabled = true;
        }

        // Enable colliders:
        foreach (Collider component in colliderComponents)
        {
            component.enabled = true;
        }

        Debug.Log("Trackable " + mTrackableBehaviour.TrackableName + " found");
        var vumarks = myvumarkmanager.GetActiveVuMarks();

        foreach (VuMarkTarget vumark in vumarks)
        {
            Debug.Log("vumark's name is:" + vumark.Name + " The content is:" + vumark.InstanceId);
        }
        m_Video.VideoShow();
    }
コード例 #2
0
 public IEnumerable <VuMarkTarget> GetVuMarkTargets()
 {
     mVuMarkManager = TrackerManager.Instance.GetStateManager().GetVuMarkManager();
     return(mVuMarkManager.GetActiveVuMarks());
 }