Edytuj

Udostępnij za pośrednictwem


HelpDrawer Class

Definition

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.DecoratorDrawer
HelpDrawer
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

Applies to