Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PropertyBag<TContainer>

Base class for implementing a property bag for a specified container type. This is an abstract class.
Read time 1 minuteLast updated 7 days ago

Definition

public abstract class PropertyBag<TContainer> : IPropertyBag<TContainer>, IPropertyBag

Remarks

This is used as the base class internally and should NOT be extended.

Properties

Property

Description

InstantiationKindImplement this property and return true to provide custom type instantiation for the container type.

Methods

Method

Description

AcceptAccepts visitation from a specified ITypeVisitor.
CreateInstanceCreates and returns a new instance of TContainer.
GetPropertiesImplement this method to return a PropertyCollection<TContainer> that can enumerate through all properties for the
TContainer
.
InstantiateImplement this method to provide custom type instantiation for the container type.
TryCreateInstanceTries to create a new instance of TContainer.