Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyBag

The PropertyBag class provides access to registered property bag instances.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule
public static class PropertyBag

Static Methods

Method

Description

AcceptWithSpecializedVisitorAccepts visitation for the given property bag and tries to invoke the most specialized visitor first.
ExistsReturns true if a property bag exists for the given type.
GetAllTypesWithAPropertyBagReturns all the Type that have a registered property bag.
GetPropertyBagGets an interface to the PropertyBag<TContainer> for the given type.
RegisterRegisters a strongly typed PropertyBag<TContainer> for a type.
RegisterArrayCreates and registers a IPropertyBag<TContainer> for a built in array type.
RegisterDictionaryCreates and registers a IPropertyBag<TContainer> for a Dictionary_2 type.
RegisterHashSetCreates and registers a IPropertyBag<TContainer> for a HashSet_1 type.
RegisterIDictionaryCreates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
RegisterIListCreates and registers a IPropertyBag<TContainer> for the specified IList_1 type.
RegisterISetCreates and registers a IPropertyBag<TContainer> for the specified ISet_1 type.
RegisterListCreates and registers a IPropertyBag<TContainer> for a List_1 type.
TryGetPropertyBagForValueGets a property bag for the concrete type of the given value.