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
Implements
Inherited Members
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 |
---|---|
Add |
Add a dependency to this container. Circular dependencies or dependencies on self are not allowed. |
Clear |
Remove all components from this container. |
Clear |
Remove all dependencies from this container. |
Create |
Create a new instance that duplicates the specified container. |
Get |
Get the value of a Type component. |
Get |
Get the value of a Type component if found.
Otherwise an instance created using Type |
Get |
Get the value of a |
Get |
Get a flatten list of all component types from this container and its dependencies. |
Get |
Get the value of a |
Get |
Get a flatten list of all components recursively from this container and its dependencies. |
Get |
Get a flatten list of all components recursively from this container and its dependencies, that matches Type. |
Get |
Get a flatten list of all components recursively from this container and its dependencies, that matches |
Get |
Get a flatten list of all dependencies recursively from this container and its dependencies. |
Has |
Determine if a Type component is stored in this container or its dependencies. |
Has |
Determine if a |
Has |
Determine if a dependency exist in this container or its dependencies. |
Is |
Determine if a Type component is inherited from a dependency. |
Is |
Determine if a |
Is |
Determine if a Type component overrides a dependency. |
Is |
Determine if a |
Remove |
Remove a Type component from this container. |
Remove |
Remove all |
Remove |
Remove a dependency from this container. |
Reset() | Reset this asset in preparation for deserialization. |
Sanitize() | Sanitize this asset after deserialization. |
Set |
Set the value of a Type component on this container using an instance created using Type |
Set |
Set the value of a Type component on this container. |
Set |
Set the value of a |
Set |
Set the value of a |
Try |
Try to get the value of a Type component. |
Try |
Try to get the value of a |