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. |
As |
Returns a read-only wrapper for this container. |
Clear |
Remove all components from this container. |
Clear |
Remove all dependencies from this container. |
Create |
Create a new instance using the specified container as a template to copy from. |
Get |
Get a component value. |
Get |
Get a component value if found, default value otherwise. |
Get |
Get a component value if found, default value otherwise. |
Get |
Get the source container from which the component value is coming from. |
Get |
Get the source container from which the component value is coming from. |
Get |
Get all component types from all dependencies recursively. |
Get |
Get a component value. |
Get |
Get all component values from all dependencies recursively. |
Get |
Get all component values from all dependencies recursively, that matches specified component type. |
Get |
Get all component values from all dependencies recursively, that matches specified component type. |
Get |
Get all dependencies recursively. |
Has |
Determine if a component exist in this container or dependencies recursively. |
Has |
Determine if a component exist in this container or dependencies recursively. |
Has |
Determine if a dependency exist in this container or its dependencies. |
Is |
Determine if a component is inherited from a dependency. |
Is |
Determine if a component is inherited from a dependency. |
Is |
|
Is |
|
Is |
Determines if component overrides a dependency. |
Is |
Determines if component overrides a dependency. |
On |
|
Remove |
Remove all components that matches the component type. |
Remove |
Remove all components that matches the component type. |
Remove |
Remove a dependency from this container. |
Reset() | Reset this asset in preparation for deserialization. |
Sanitize() | Sanitize this asset after deserialization. |
Set |
Set a component to default value. |
Set |
|
Set |
Set a component to the value specified. |
Set |
Set a component to default value. |
Set |
Set a component to the value specified. |
Try |
Get a component value. |
Try |
Get a component value. |