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; }
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); }
void Start() { _xr = SimpleWebXR.EnsureInstance(); if (!_xr) { return; } // Create spheres _left = CreateHand("Left"); _right = CreateHand("Right"); }