예제 #1
0
    static bool anchorExists; // backs public AnchorExists property
    #endregion                // PRIVATE_MEMBERS


    #region MONOBEHAVIOUR_METHODS

    void Start()
    {
        VuforiaARController.Instance.RegisterVuforiaStartedCallback(OnVuforiaStarted);
        VuforiaARController.Instance.RegisterOnPauseCallback(OnVuforiaPaused);
        DeviceTrackerARController.Instance.RegisterTrackerStartedCallback(OnTrackerStarted);
        DeviceTrackerARController.Instance.RegisterDevicePoseStatusChangedCallback(OnDevicePoseStatusChanged);

        m_PlaneFinder.HitTestMode = HitTestMode.AUTOMATIC;

        m_TGOProductPlacement  = FindObjectOfType <TGOProductPlacement>();
        m_BEPIProductPlacement = FindObjectOfType <BEPIProductPlacement>();
        m_TGOTouchHandler      = FindObjectOfType <TGOTouchHandlerTest>();
        m_BEPITouchHandler     = FindObjectOfType <BEPITouchHandlerTest>();
        m_GroundPlaneUI        = FindObjectOfType <GroundPlaneTestUI>();

        m_TGOAnchor  = m_TGOAugmentation.GetComponentInParent <AnchorBehaviour>();
        m_BEPIAnchor = m_BEPIAugmentation.GetComponentInParent <AnchorBehaviour>();
        UtilityHelperTest.EnableRendererColliderCanvas(m_TGOAugmentation, false);
        UtilityHelperTest.EnableRendererColliderCanvas(m_BEPIAugmentation, false);
    }
예제 #2
0
    void Start()
    {
        m_ResetButton.interactable = false;
        m_TGOToggle.interactable   = false;
        m_BEPIToggle.interactable  = false;



        m_TrackerStatus.text = "";
        m_TrackerStatusImage = m_TrackerStatus.GetComponentInParent <Image>();

        m_TGOProductPlacement  = FindObjectOfType <TGOProductPlacement>();
        m_BEPIProductPlacement = FindObjectOfType <BEPIProductPlacement>();

        m_TGOTouchHandler  = FindObjectOfType <TGOTouchHandlerTest>();
        m_BEPITouchHandler = FindObjectOfType <BEPITouchHandlerTest>();

        m_GraphicRayCaster = FindObjectOfType <GraphicRaycaster>();
        m_EventSystem      = FindObjectOfType <EventSystem>();

        Vuforia.DeviceTrackerARController.Instance.RegisterDevicePoseStatusChangedCallback(OnDevicePoseStatusChanged);
    }