docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnGUI

    OnGUI(SerializedDataParameter, GUIContent)

    Draws the parameter in the editor. If the input parameter is invalid you should return false so that Unity displays the default editor for this parameter.

    Declaration
    public abstract bool OnGUI(SerializedDataParameter parameter, GUIContent title)
    Parameters
    Type Name Description
    SerializedDataParameter parameter

    The parameter to draw.

    GUIContent title

    The label and tooltip of the parameter.

    Returns
    Type Description
    bool

    true if the input parameter is valid, false otherwise in which case Unity will revert to the default editor for this parameter

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)