AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
SceneGameObjectAttribute.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 System.Reflection;
6 #if UNITY_EDITOR
7 using UnityEditor;
8 #endif
9 
10 namespace HoloToolkit.Unity
11 {
12  // Displays a drop-down menu of GameObjects that are limited to the target object
13  [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
15  {
16  public string CustomLabel { get; private set; }
17 
18  public SceneGameObjectAttribute(string customLabel = null)
19  {
20  CustomLabel = customLabel;
21  }
22 
23 #if UNITY_EDITOR
24  public override void DrawEditor(UnityEngine.Object target, FieldInfo field, SerializedProperty property)
25  {
26  throw new NotImplementedException();
27  }
28 
29  public override void DrawEditor(UnityEngine.Object target, PropertyInfo prop)
30  {
31  throw new NotImplementedException();
32  }
33 #endif
34 
35  }
36 }