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 the value of a Type component.

    GetComponentOrDefault(Type)

    Get the value of a Type component if found. Otherwise an instance created using TypeConstruction utility. The container is not modified.

    GetComponentOrDefault<T>()

    Get the value of a T component if found. Otherwise an instance created using TypeConstruction utility. The container is not modified.

    GetComponentTypes()

    Get a flatten list of all component types from this container and its dependencies.

    GetComponent<T>()

    Get the value of a T component.

    GetComponents()

    Get a flatten list of all components recursively from this container and its dependencies.

    GetComponents(Type)

    Get a flatten list of all components recursively from this container and its dependencies, that matches Type.

    GetComponents<T>()

    Get a flatten list of all components recursively from this container and its dependencies, that matches Type.

    HasComponent(Type)

    Determine if a Type component is stored in this container or its dependencies.

    HasComponent<T>()

    Determine if a T component is stored in this container or its dependencies.

    IsComponentInherited(Type)

    Determine if a Type component is inherited from a dependency.

    IsComponentInherited<T>()

    Determine if a T component is inherited from a dependency.

    IsComponentOverridden(Type)

    Determine if a Type component overrides a dependency.

    IsComponentOverridden<T>()

    Determine if a T component overrides a dependency.

    TryGetComponent(Type, out TComponent)

    Try to get the value of a Type component.

    TryGetComponent<T>(out T)

    Try to get the value of a T component.

    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)