Class ScriptableSettingsBase<T> | XR Tools Utilities | 1.0.0
docs.unity3d.com
    Show / Hide Table of Contents

    Class ScriptableSettingsBase<T>

    Base class for ScriptableSettings

    Inheritance
    Object
    ScriptableSettingsBase
    ScriptableSettingsBase<T>
    EditorScriptableSettings<T>
    ScriptableSettings<T>
    Inherited Members
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: Unity.XRTools.Utils.Internal
    Syntax
    public abstract class ScriptableSettingsBase<T> : ScriptableSettingsBase where T : ScriptableObject
    Type Parameters
    Name Description
    T

    The implementing type of ScriptableSettings

    Constructors

    ScriptableSettingsBase()

    Initialize a new ScriptableSettingsBase

    Declaration
    protected ScriptableSettingsBase()

    Fields

    k_HasCustomPath

    Declaration
    protected static readonly bool k_HasCustomPath
    Field Value
    Type Description
    Boolean

    s_Instance

    Singleton instance field

    Declaration
    protected static T s_Instance
    Field Value
    Type Description
    T

    Methods

    GetFilePath()

    Get the filename for this ScriptableSettings

    Declaration
    protected static string GetFilePath()
    Returns
    Type Description
    String

    The filename

    Save(String)

    Save this ScriptableSettings to an asset

    Declaration
    protected static void Save(string savePathFormat)
    Parameters
    Type Name Description
    String savePathFormat

    Format string for creating the path of the asset

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023