AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
RegisterPointableCanvas.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using System;
5 using UnityEngine;
6 
7 namespace HoloToolkit.Unity.InputModule
8 {
12  [Obsolete("You don't need to register canvases any longer")]
13  public class RegisterPointableCanvas : MonoBehaviour
14  {
15  //private void Start()
16  //{
17  // Canvas canvas = GetComponent<Canvas>();
18 
19  // if (canvas == null)
20  // {
21  // Debug.LogErrorFormat("Object \"{0}\" is missing its canvas component.", name);
22  // }
23  // else
24  // {
25  // FocusManager.Instance.RegisterPointableCanvas(canvas);
26  // }
27  //}
28  }
29 }
Script to register a Canvas component so it&#39;s capable of being focused at for &#39;point and commit&#39; scen...