docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HierarchicalComponentContainer<TContainer, TComponent>

    Base class that stores a set of hierarchical components by type. Other containers can be added as dependencies to get inherited or overridden components.

    Inheritance
    object
    Object
    ScriptableObject
    ScriptableObjectPropertyContainer<TContainer>
    HierarchicalComponentContainer<TContainer, TComponent>
    BuildConfiguration
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    ScriptableObjectPropertyContainer<TContainer>.CreateInstance(Action<TContainer>)
    ScriptableObjectPropertyContainer<TContainer>.CreateAsset(string, Action<TContainer>)
    ScriptableObjectPropertyContainer<TContainer>.CreateAssetInActiveDirectory(string, Action<TContainer>)
    ScriptableObjectPropertyContainer<TContainer>.LoadAsset(string)
    ScriptableObjectPropertyContainer<TContainer>.LoadAsset(GUID)
    ScriptableObjectPropertyContainer<TContainer>.SaveAsset(string)
    ScriptableObjectPropertyContainer<TContainer>.RestoreAsset()
    ScriptableObjectPropertyContainer<TContainer>.IsModified()
    ScriptableObjectPropertyContainer<TContainer>.SerializeToJson()
    ScriptableObjectPropertyContainer<TContainer>.DeserializeFromJson(TContainer, string)
    ScriptableObjectPropertyContainer<TContainer>.SerializeToPath(string)
    ScriptableObjectPropertyContainer<TContainer>.DeserializeFromPath(TContainer, string)
    ScriptableObjectPropertyContainer<TContainer>.OnBeforeSerialize()
    ScriptableObjectPropertyContainer<TContainer>.OnAfterDeserialize()
    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.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    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
    public abstract class HierarchicalComponentContainer<TContainer, TComponent> : ScriptableObjectPropertyContainer<TContainer>, ISerializationCallbackReceiver where TContainer : HierarchicalComponentContainer<TContainer, TComponent>
    Type Parameters
    Name Description
    TContainer

    Type of the component container.

    TComponent

    Components base type.

    Methods

    Name Description
    AddDependency(TContainer)

    Add a dependency to this container. Circular dependencies or dependencies on self are not allowed.

    AsReadOnly()

    Returns a read-only wrapper for this container.

    ClearComponents()

    Remove all components from this container.

    ClearDependencies()

    Remove all dependencies from this container.

    CreateInstance(TContainer)

    Create a new instance using the specified container as a template to copy from.

    GetComponent(Type)

    Get a component value.

    GetComponentOrDefault(Type)

    Get a component value if found, default value otherwise.

    GetComponentOrDefault<T>()

    Get a component value if found, default value otherwise.

    GetComponentSource(Type, bool)

    Get the source container from which the component value is coming from.

    GetComponentSource<T>(bool)

    Get the source container from which the component value is coming from.

    GetComponentTypes()

    Get all component types from all dependencies recursively.

    GetComponent<T>()

    Get a component value.

    GetComponents()

    Get all component values from all dependencies recursively.

    GetComponents(Type)

    Get all component values from all dependencies recursively, that matches specified component type.

    GetComponents<T>()

    Get all component values from all dependencies recursively, that matches specified component type.

    GetDependencies()

    Get all dependencies recursively.

    HasComponent(Type)

    Determine if a component exist in this container or dependencies recursively.

    HasComponent<T>()

    Determine if a component exist in this container or dependencies recursively.

    HasDependency(TContainer)

    Determine if a dependency exist in this container or its dependencies.

    IsComponentInherited(Type)

    Determine if a component is inherited from a dependency.

    IsComponentInherited<T>()

    Determine if a component is inherited from a dependency.

    IsComponentOverridden(Type)
    IsComponentOverridden<T>()
    IsComponentOverriding(Type)

    Determines if component overrides a dependency.

    IsComponentOverriding<T>()

    Determines if component overrides a dependency.

    OnComponentConstruct(ref TComponent)
    RemoveComponent(Type)

    Remove all components that matches the component type.

    RemoveComponent<T>()

    Remove all components that matches the component type.

    RemoveDependency(TContainer)

    Remove a dependency from this container.

    Reset()

    Reset this asset in preparation for deserialization.

    Sanitize()

    Sanitize this asset after deserialization.

    SetComponent(Type)

    Set a component to default value.

    SetComponent(Type, TComponent)
    SetComponent(TComponent)

    Set a component to the value specified.

    SetComponent<T>()

    Set a component to default value.

    SetComponent<T>(T)

    Set a component to the value specified.

    TryGetComponent(Type, out TComponent)

    Get a component value.

    TryGetComponent<T>(out T)

    Get a component value.

    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)