mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class HelpDrawer

    Custom property drawer to show an optionally collapsible foldout help section in the Inspector

    Inheritance
    Object
    HelpDrawer
    Implements
    DecoratorDrawer
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class HelpDrawer : DecoratorDrawer, DecoratorDrawer
    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.")]
    [Help("This is a multiline optionally collapsable help section.\n • Great for providing simple instructions in Inspector.\n • Easy to use.\n • Saves space.")]

    Methods

    GetHeight()

    Gets the height of the decorator

    Declaration
    public override float GetHeight()
    Returns
    Type Description
    Single

    GetHeight()

    Gets the height of the decorator

    Declaration
    public override float GetHeight()
    Returns
    Type Description
    Single

    OnGUI(Rect)

    Unity calls this function to draw the GUI

    Declaration
    public override void OnGUI(Rect position)
    Parameters
    Type Name Description
    Rect position

    Rectangle to display the GUI in

    OnGUI(Rect)

    Unity calls this function to draw the GUI

    Declaration
    public override void OnGUI(Rect position)
    Parameters
    Type Name Description
    Rect position

    Rectangle to display the GUI in

    Implements

    DecoratorDrawer
    In This Article
    • Methods
      • GetHeight()
      • GetHeight()
      • OnGUI(Rect)
      • OnGUI(Rect)
    • Implements
    Back to top Generated by DocFX