ContainerPropertyBag<TContainer>
Base class for implementing a static property bag for a specified container type. This is an abstract class.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Class
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
- Inherits from: PropertyBag<T>
- Implements: IPropertyBag<T>, IPropertyBag, INamedProperties<T>
public abstract class ContainerPropertyBag<TContainer> : PropertyBag<TContainer>, IPropertyBag<TContainer>, IPropertyBag, INamedProperties<TContainer>
Remarks
A ContainerPropertyBag<TContainer> is used to describe and traverse the properties for a specified type.
TContainerIn order for properties to operate on a type, a ContainerPropertyBag<TContainer> must exist and be pre-registered for that type.
NOTE In editor use cases property bags can be generated dynamically through reflection. (see Unity.Properties.Reflection)
Methods
Method | Description |
|---|---|
| AddProperty | Adds a Property<TContainer, TValue> to the property bag. |
| TryGetProperty | Gets the property associated with the specified name. |