Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetPropertyBagForValue<TValue>(ref TValue, out IPropertyBag)

Gets a property bag for the concrete type of the given value.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

TryGetPropertyBagForValue<T>(T, IPropertyBag)

public static bool TryGetPropertyBagForValue<TValue>(ref TValue value, out IPropertyBag propertyBag)

Parameters

value

T
The value type to retrieve a property bag for.

propertyBag

When this method returns, contains the property bag associated with the specified value, if the bag is found; otherwise, null.

Returns

Type

Description

bool
true
if the property bag was found for the specified value; otherwise,
false
.