docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HierarchicalComponentContainer<TContainer, TComponent>.ReadOnly

    A read-only wrapper for this container, which does not expose methods that modify the container. If changes are made to the underlying container, the read-only wrapper reflects those changes.

    Inheritance
    object
    HierarchicalComponentContainer<TContainer, TComponent>.ReadOnly
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Build
    Assembly: solution.dll
    Syntax
    public class HierarchicalComponentContainer<TContainer, TComponent>.ReadOnly

    Methods

    Name Description
    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.

    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.

    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.

    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)