AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DocLinkAttribute.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  // Provides a clickable link to documentation in the inspector header
12  [AttributeUsage(AttributeTargets.Class)]
13  public sealed class DocLinkAttribute : Attribute
14  {
15 
16  public string DocURL { get; private set; }
17  public string Description { get; private set; }
18 
19  public DocLinkAttribute(string docURL, string description = null)
20  {
21  DocURL = docURL;
22  Description = description;
23  }
24  }
25 }