Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.PropertiesModule

Interfaces and utilities to describe and visit data containers.
Read time 7 minutesLast updated 3 hours ago

Definition

  • Type: Module

Classes

Class

Description

ArrayPropertyBag<TElement>An IPropertyBag<TContainer> implementation for a built in array of
TElement
.
ConcreteTypeVisitorBase class to implement a visitor responsible for getting an object's concrete type as a generic.
ContainerPropertyBag<TContainer>Base class for implementing a static property bag for a specified container type. This is an abstract class.
DelegateProperty<TContainer, TValue>Represents a value property.
DictionaryPropertyBag<TKey, TValue>An IPropertyBag<TContainer> implementation for a Dictionary_2 type.
GeneratePropertyBagAttributeUse this attribute to have the source generator generate property bags for a given type.
GeneratePropertyBagsForAssemblyAttributeUse this attribute to enable the source generator to run on this assembly.
GeneratePropertyBagsForTypeAttributeUse this attribute to have the source generator generate a property bag for a given type. This attribute works for the specified type ONLY, it does NOT include derived types.
GeneratePropertyBagsForTypesQualifiedWithAttributeUse this attribute to have the properties source generator generate property bags for types implementing the specified interface.
HashSetPropertyBag<TElement>An IPropertyBag<TContainer> implementation for a HashSet_1 type.
IndexedCollectionPropertyBag<TList, TElement>An IPropertyBag<TContainer> implementation for a generic collection of elements which can be accessed by index. This is based on the IList_1 interface.
InvalidContainerTypeExceptionThe exception that is thrown when trying to visit an invalid container type.
InvalidPathExceptionThe exception that is thrown when trying to resolve an invalid path.
KeyValueCollectionPropertyBag<TDictionary, TKey, TValue>An IPropertyBag<TContainer> implementation for a generic collection of key/value pairs using the IDictionary_2 interface.
KeyValuePairPropertyBag<TKey, TValue>A IPropertyBag<TContainer> implementation for a generic key/value pair.
ListPropertyBag<TElement>A IPropertyBag<TContainer> implementation for a List_1 type.
MissingPropertyBagExceptionThe exception that is thrown when trying to visit a container with no property bag.
PathVisitorHelper visitor to visit a single property using a specified PropertyPath.
Property<TContainer, TValue>Base class for implementing properties. This is an abstract class.
PropertyBagThe PropertyBag class provides access to registered property bag instances.
PropertyBag<TContainer>Base class for implementing a property bag for a specified container type. This is an abstract class.
PropertyContainerThe PropertyContainer class is used as the entry point to operate on data containers using properties.
PropertyVisitorBase class for implementing algorithms using properties. This is an abstract class.
ReflectedMemberProperty<TContainer, TValue>A ReflectedMemberProperty<TContainer, TValue> provides strongly typed access to an underlying FieldInfo or PropertyInfo object.
SetPropertyBagBase<TSet, TElement>A IPropertyBag<TContainer> implementation for a generic set of elements using the ISet_1 interface.
TypeConversionHelper class to handle type conversion during properties API calls.
TypeTraitsHelper class to avoid paying the cost of runtime type lookups.
TypeTraits<T>Helper class to avoid paying the cost of runtime type lookups.
TypeUtilityUtility class around Type.

Structs

Struct

Description

AttributesScopeScope for using a given set of attributes.
ExcludeContext<TContainer, TValue>Context object used during visitation to determine if a property should be visited or not.
ExcludeContext<TContainer>Context object used during visitation to determine if a property should be visited or not.
PropertyCollection<TContainer>The PropertyCollection<TContainer> struct provides enumerable access to all IProperty<TContainer> for a given PropertyBag<TContainer>.
PropertyPathA PropertyPath is used to store a reference to a single property within a tree.
PropertyPathPartA PropertyPathPart represents a single element of the path.
VisitContext<TContainer, TValue>Context object used during visitation when a IProperty<TContainer> is visited.
VisitContext<TContainer>Context object used during visitation when a IProperty<TContainer> is visited.
VisitParametersCustom parameters to use for visitation.

Enums

Enum

Description

InstantiationKindDescribes how a new instance is created.
PropertyPathPartKindA PropertyPathPartKind specifies a type for a PropertyPathPart.
TypeGenerationOptionsA set of options to customize the behaviour of the code generator.
VisitExceptionKindFlags used to specify a set of exceptions.
VisitReturnCodeInternal return code used during path visitation.

Interfaces

Interface

Description

ICollectionElementPropertyBase interface for working with a collection element property.
ICollectionPropertyAccept<TCollection>Interface for accepting collection property visitation.
ICollectionPropertyBag<TCollection, TElement>Base untyped interface for implementing collection based property bags.
ICollectionPropertyBagAccept<TContainer>Interface for accepting collection property bags visitation.
ICollectionPropertyBagVisitorInterface for visiting property bags.
ICollectionPropertyVisitorInterface for receiving strongly typed property callbacks for collections.
IDictionaryElementPropertyInterface over a property representing a untyped dictionary element.
IDictionaryElementProperty<TKey>Interface over a property representing a typed dictionary element.
IDictionaryPropertyAccept<TDictionary>Interface for accepting dictionary property visitation.
IDictionaryPropertyBag<TDictionary, TKey, TValue>Base typed interface for implementing dictionary based property bags.
IDictionaryPropertyBagAccept<TContainer>Interface for accepting list property bags visitation.
IDictionaryPropertyBagVisitorInterface for visiting property bags.
IDictionaryPropertyVisitorInterface for receiving strongly typed property callbacks for dictionaries.
IExcludeContravariantPropertyAdapter<TContainer, TValue>Implement this interface to filter visitation for a specific
TContainer
and
TValue
pair.
IExcludeContravariantPropertyAdapter<TValue>Implement this interface to filter visitation for a specific
TValue
type.
IExcludePropertyAdapterImplement this interface to filter visitation.
IExcludePropertyAdapter<TContainer, TValue>Implement this interface to filter visitation for a specific
TContainer
and
TValue
pair.
IExcludePropertyAdapter<TValue>Implement this interface to filter visitation for a specific
TValue
type.
IIndexedProperties<TContainer>This interface provides access to an IProperty<TContainer> of a IPropertyBag<TContainer> by index.
IKeyedProperties<TContainer, TKey>This interface provides access to an IProperty<TContainer> of a IPropertyBag<TContainer> by a key.
IListElementPropertyInterface over a property representing a list element.
IListPropertyAccept<TList>Interface for accepting list property visitation.
IListPropertyBag<TList, TElement>Base typed interface for implementing list based property bags.
IListPropertyBagAccept<TContainer>Interface for accepting list property bags visitation.
IListPropertyBagVisitorInterface for visiting property bags.
IListPropertyVisitorInterface for receiving strongly typed property callbacks for lists.
INamedProperties<TContainer>This interface provides access to an IProperty<TContainer> of a IPropertyBag<TContainer> by name.
IPropertyBase interface for working with properties.
IProperty<TContainer>Base interface for working with properties.
IPropertyAccept<TContainer>Interface for accepting property visitation.
IPropertyBagBase untyped interface for implementing property bags.
IPropertyBag<TContainer>Base typed interface for implementing property bags.
IPropertyBagVisitorInterface used to receive a visitation callbacks for property bags.
IPropertyVisitorInterface for receiving strongly typed property callbacks.
IPropertyVisitorAdapterThe base interface representing an adapter.
ISetElementPropertyInterface over a property representing a set element.
ISetElementProperty<TKey>Interface over a property representing a set element.
ISetPropertyAccept<TSet>Interface for accepting hash set property visitation.
ISetPropertyBag<TSet, TElement>Base typed interface for implementing set based property bags.
ISetPropertyBagAccept<TContainer>Interface for accepting list property bags visitation.
ISetPropertyBagVisitorInterface for visiting property bags.
ISetPropertyVisitorInterface for receiving strongly typed property callbacks for sets.
ITypeVisitorInterface used to receive a visitation callbacks for a specific type.
IVisitContravariantPropertyAdapter<TContainer, TValue>Implement this interface to intercept the visitation for a specific
TContainer
and
TValue
pair.
IVisitContravariantPropertyAdapter<TValue>Implement this interface to intercept the visitation for a specific
TValue
type.
IVisitPrimitivesPropertyAdapterImplement this interface to intercept the visitation of any primitive type.
IVisitPropertyAdapterImplement this interface to handle visitation for all properties.
IVisitPropertyAdapter<TContainer, TValue>Implement this interface to intercept the visitation for a specific
TContainer
and
TValue
pair.
IVisitPropertyAdapter<TValue>Implement this interface to intercept the visitation for a specific
TValue
type.

Delegates

Delegate

Description

PropertyGetter<TContainer, TValue>Represents the method that will handle getting a
TValue
type for a specified
container
.
PropertySetter<TContainer, TValue>Represents the method that will handle setting a specified
value
for a specified
container
.
TypeConverter<TSource, TDestination>Represents the method that will handle converting an object of type
TSource
to an object of type
TDestination
.