docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class ScriptableSettingsProvider<T>

    Expose a ScriptableSettings<T> object as a settings provider.

    Inheritance
    object
    SettingsProvider
    ScriptableSettingsProvider<T>
    Inherited Members
    SettingsProvider.OnDeactivate()
    SettingsProvider.HasSearchInterest(string)
    SettingsProvider.OnTitleBarGUI()
    SettingsProvider.OnFooterBarGUI()
    SettingsProvider.OnInspectorUpdate()
    SettingsProvider.Repaint()
    SettingsProvider.PopulateSearchKeywordsFromGUIContentProperties<T>()
    SettingsProvider.GetSearchKeywordsFromGUIContentProperties<T>()
    SettingsProvider.GetSearchKeywordsFromSerializedObject(SerializedObject)
    SettingsProvider.GetSearchKeywordsFromPath(string)
    SettingsProvider.label
    SettingsProvider.settingsPath
    SettingsProvider.scope
    SettingsProvider.keywords
    SettingsProvider.guiHandler
    SettingsProvider.titleBarGuiHandler
    SettingsProvider.footerBarGuiHandler
    SettingsProvider.activateHandler
    SettingsProvider.deactivateHandler
    SettingsProvider.hasSearchInterestHandler
    SettingsProvider.inspectorUpdateHandler
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils.Editor
    Assembly: solution.dll
    Syntax
    public abstract class ScriptableSettingsProvider<T> : SettingsProvider where T : ScriptableSettingsBase<T>
    Type Parameters
    Name Description
    T

    The ScriptableSettings type to be exposed.

    Constructors

    Name Description
    ScriptableSettingsProvider(string, SettingsScope)

    Initialize a new ScriptableSettingsProvider.

    Properties

    Name Description
    SerializedObject

    A SerializedObject representing the ScriptableSettings being provided.

    Target

    The ScriptableSettings being provided.

    Methods

    Name Description
    OnActivate(string, VisualElement)

    Use this function to implement a handler for when the user clicks on the Settings in the Settings window. You can fetch a settings Asset or set up UIElements UI from this function.

    OnGUI(string)

    Use this function to draw the UI based on IMGUI. This assumes you haven't added any children to the rootElement passed to the OnActivate function.

    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)