docs.unity.cn
    Show / Hide Table of Contents

    Class ScriptableSettingsProviderBase<T>

    Base class for ScriptableSettingsProvider, which exposes a ScriptableSettings type as a settings provider

    Inheritance
    Object
    ScriptableSettingsProviderBase<T>
    ScriptableSettingsProvider<T>
    Namespace: UnityEditor.XRTools.Utils.Internal
    Syntax
    public abstract class ScriptableSettingsProviderBase<T> : SettingsProvider where T : ScriptableSettingsBase<T>
    Type Parameters
    Name Description
    T

    The ScriptableSettings type which will be exposed

    Constructors

    ScriptableSettingsProviderBase(String, SettingsScope)

    Initialize a new ScriptableSettingsProviderBase

    Declaration
    protected ScriptableSettingsProviderBase(string path, SettingsScope scope)
    Parameters
    Type Name Description
    String path

    The path to this settings view within the Preferences or Project Settings window

    SettingsScope scope

    The scope of these settings

    Fields

    s_SerializedObject

    Cache field for serializedObject property

    Declaration
    protected static SerializedObject s_SerializedObject
    Field Value
    Type Description
    SerializedObject

    s_Target

    Cache field for target property

    Declaration
    protected static T s_Target
    Field Value
    Type Description
    T

    Methods

    GetSerializedSettings()

    Initialize this settings object and return a SerializedObject wrapping it

    Declaration
    protected static SerializedObject GetSerializedSettings()
    Returns
    Type Description
    SerializedObject

    The SerializedObject wrapper

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Thursday, December 2, 2021
    Terms of use