Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

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
TContainer
type.
In 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

AddPropertyAdds a Property<TContainer, TValue> to the property bag.
TryGetPropertyGets the property associated with the specified name.

Inheritance