HelpDrawer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Custom property drawer to show an optionally collapsible foldout help section in the Inspector
public ref class HelpDrawer : UnityEditor::DecoratorDrawer
[UnityEditor.CustomPropertyDrawer(typeof(Microsoft.MixedReality.Toolkit.HelpAttribute))]
public class HelpDrawer : UnityEditor.DecoratorDrawer
[<UnityEditor.CustomPropertyDrawer(typeof(Microsoft.MixedReality.Toolkit.HelpAttribute))>]
type HelpDrawer = class
inherit DecoratorDrawer
Public Class HelpDrawer
Inherits DecoratorDrawer
- Inheritance
-
UnityEditor.DecoratorDrawerHelpDrawer
- Attributes
-
UnityEditor.CustomPropertyDrawerAttribute
Examples
[Help("This is a multiline optionally collapsable help section.\n • Great for providing simple instructions in Inspector.\n • Easy to use.\n • Saves space.")]
Constructors
HelpDrawer() |
Methods
GetHeight() |
Gets the height of the decorator |
OnGUI(Rect) |
Unity calls this function to draw the GUI |