docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ScriptableObjectPropertyContainer<TContainer>

    Provides the necessary implementation to use properties and serialization with a UnityEngine.ScriptableObject of type TContainer.

    Inheritance
    object
    Object
    ScriptableObject
    ScriptableObjectPropertyContainer<TContainer>
    HierarchicalComponentContainer<TContainer, TComponent>
    Implements
    ISerializationCallbackReceiver
    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, bool)
    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, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Build
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class ScriptableObjectPropertyContainer<TContainer> : ScriptableObject, ISerializationCallbackReceiver where TContainer : ScriptableObjectPropertyContainer<TContainer>
    Type Parameters
    Name Description
    TContainer

    The type of the container.

    Methods

    Name Description
    CreateAsset(string, Action<TContainer>)

    Create a new asset instance saved to disk.

    CreateAssetInActiveDirectory(string, Action<TContainer>)

    Create a new asset instance saved to disk, in the active directory.

    CreateInstance(Action<TContainer>)

    Create a new instance.

    DeserializeFromJson(TContainer, string)

    Deserialize from a JSON string into the container.

    DeserializeFromPath(TContainer, string)

    Deserialize from a file into the container.

    IsModified()

    Determine if there is unsaved modifications.

    LoadAsset(string)

    Load an asset from the specified asset path.

    LoadAsset(GUID)

    Load an asset from the specified asset UnityEditor.GUID.

    OnAfterDeserialize()

    Implement this method to receive a callback after Unity deserializes your object.

    OnBeforeSerialize()

    Implement this method to receive a callback before Unity serializes your object.

    Reset()

    Reset this asset in preparation for deserialization.

    RestoreAsset()

    Restore this asset from disk.

    Sanitize()

    Sanitize this asset after deserialization.

    SaveAsset(string)

    Save this asset to disk. If no asset path is provided, asset is saved at its original location.

    SerializeToJson()

    Serialize this container to a JSON string.

    SerializeToPath(string)

    Serialize this container to a file.

    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)