docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method DrawDerivedProperties

    DrawDerivedProperties()

    This method is automatically called by DrawInspector() to draw the property fields of derived classes that are not explicitly defined in the Unity.XR.CoreUtils.Editor.

    Declaration
    protected virtual void DrawDerivedProperties()
    Remarks

    This method is used to allow users to add a SerializeField to a derived behavior and have it automatically appear in the Inspector while still having the custom Editor apply to that derived class.
    When a derived Unity.XR.CoreUtils.Editor class adds a SerializedProperty, it will no longer automatically be drawn by this method. This is to allow users to customize where the property is drawn in the Inspector window. The derived Unity.XR.CoreUtils.Editor class does not need to explicitly add the SerializedProperty if the user is fine with the default location of where it will be drawn.

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