GetPropertyBag
Gets an interface to the PropertyBag<TContainer> for the given type.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
GetPropertyBag(Type)
Gets an interface to the PropertyBag<TContainer> for the given type.
public static IPropertyBag GetPropertyBag(Type type)
Parameters
The container type to resolve the property bag for.
Returns
Type | Description |
|---|---|
| IPropertyBag | The resolved property bag. |
Remarks
The returned IPropertyBag can be used to get the strongly typed generic using the IPropertyBag.Accept interface method.
GetPropertyBag<T>()
Gets the strongly typed PropertyBag<TContainer> for the given .
TContainerpublic static IPropertyBag<TContainer> GetPropertyBag<TContainer>()
Returns
Type | Description |
|---|---|
| IPropertyBag<T> | The resolved property bag, strongly typed. |