docs.unity3d.com
    Show / Hide Table of Contents

    Class ScriptableObjectUtility

    This is a collection of utilities surrounding ScriptableObjects

    Inheritance
    Object
    Object
    ScriptableObject
    ScriptableObjectUtility
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Cinemachine.Editor
    Syntax
    public class ScriptableObjectUtility : ScriptableObject

    Fields

    kPackageRoot

    The default relative path to the root directory where Cinemachine is installed

    Declaration
    public static string kPackageRoot
    Field Value
    Type Description
    String

    Properties

    CinemachineInstallPath

    Get the Cinemachine package install path.

    Declaration
    public static string CinemachineInstallPath { get; }
    Property Value
    Type Description
    String

    CinemachineRealativeInstallPath

    Get the relative Cinemachine package install path.

    Declaration
    public static string CinemachineRealativeInstallPath { get; }
    Property Value
    Type Description
    String

    Methods

    Create<T>(Boolean, Boolean)

    Create a ScriptableObject asset

    Declaration
    public static void Create<T>(bool prependFolderName = false, bool trimName = true)
        where T : ScriptableObject
    Parameters
    Type Name Description
    Boolean prependFolderName

    If true, prepend the selected asset folder name to the asset name

    Boolean trimName

    If true, remove instances of the "Asset", "Attributes", "Container" strings from the name

    Type Parameters
    Name Description
    T

    The type of asset to create

    CreateAt(Type, String)

    Create a scriptable object asset

    Declaration
    public static ScriptableObject CreateAt(Type assetType, string assetPath)
    Parameters
    Type Name Description
    Type assetType

    The type of asset to create

    String assetPath

    The full path and filename of the asset to create

    Returns
    Type Description
    ScriptableObject

    The newly-created asset

    CreateAt<T>(String)

    Create a scriptable object asset

    Declaration
    public static T CreateAt<T>(string assetPath)
        where T : ScriptableObject
    Parameters
    Type Name Description
    String assetPath

    The full path and filename of the asset to create

    Returns
    Type Description
    T

    The newly-created asset

    Type Parameters
    Name Description
    T

    The type of asset to create

    Back to top
    Terms of use
    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