public override void Enable()
        {
            base.Enable();

            // create SimpleWebXR component to display "Start AR" or "Start VR" button and call SimpleWebXR.UpdateWebXR() at each frame
            SimpleWebXR.EnsureInstance();
        }
        void Start()
        {
            _xr = SimpleWebXR.EnsureInstance();

            _style           = new GUIStyle();
            _style.richText  = true;
            _style.alignment = TextAnchor.UpperLeft;
        }
示例#3
0
        public override void Enable()
        {
            base.Enable();
            xr = SimpleWebXR.EnsureInstance();

            xr.SessionStart.AddListener(OnSessionStart);
            xr.SessionEnd.AddListener(OnSessionEnd);
        }
        public override void Enable()
        {
            base.Enable();

            // create SimpleWebXR component to display "Start AR" or "Start VR" button and call SimpleWebXR.UpdateWebXR() at each frame
            SimpleWebXR.EnsureInstance();

            SimpleWebXR.SessionStart.AddListener(OnSessionStart);
            SimpleWebXR.SessionEnd.AddListener(OnSessionEnd);
        }
示例#5
0
        void Start()
        {
            _xr = SimpleWebXR.EnsureInstance();

            if (!_xr)
            {
                return;
            }

            // Create spheres
            _left  = CreateHand("Left");
            _right = CreateHand("Right");
        }