Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

type

The container type to resolve the property bag for.

Returns

Type

Description

IPropertyBagThe 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
TContainer
.
public static IPropertyBag<TContainer> GetPropertyBag<TContainer>()

Returns

Type

Description

IPropertyBag<T>The resolved property bag, strongly typed.