// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit
{
///
/// A PropertyAttribute for showing a collapsible Help section.
///
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
public class HelpAttribute : PropertyAttribute
{
///
/// The help text
///
public string Text;
///
/// The help header foldout text
///
///
/// If Collapsible is false, then this header text will not be shown.
///
public string Header;
///
/// If true, this will be a collapsible help section. Defaults to true.
///
public bool Collapsible;
///
/// Constructor
///
/// The help text to display
/// The help header foldout text
/// If true, this help drawer will be collapsible
public HelpAttribute(string helpText, string helpHeader = "Help", bool collapsible = true)
{
Text = helpText;
Header = helpHeader;
Collapsible = collapsible;
}
}
}