docs.unity.cn
    Show / Hide Table of Contents

    Class ContentProvider

    Inherit from this class to display arbitrary content in either an editor window or the inspector.

    Inheritance
    Object
    ContentProvider
    Namespace: Unity.Properties.UI
    Syntax
    public abstract class ContentProvider
    Remarks

    The type must have an explicit or implicit default constructor.

    Properties

    Name Description
    Name

    Implement this property to assign the name to display in the title bar of the owning editor window or as the name to display when the content is not ready.

    Methods

    Name Description
    GetContent()

    Implement this method to return the value representing the content.

    GetStatus()

    Override this method if your content may not be immediately available.

    OnContentChanged(ContentProvider.ChangeContext)

    Override this method to be notified when the UI detects a change.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use