AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HideInMRTKInspector.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 #if UNITY_EDITOR
6 using UnityEditor;
7 #endif
8 
9 namespace HoloToolkit.Unity
10 {
11  // Hides a field in an MRDL inspector
12  [AttributeUsage(AttributeTargets.Field)]
13  public sealed class HideInMRTKInspector : ShowIfAttribute
14  {
15  public HideInMRTKInspector() { }
16 
17 #if UNITY_EDITOR
18  public override bool ShouldShow(object target)
19  {
20  return false;
21  }
22 #endif
23  }
24 }