Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetProperty(ref TContainer, TKey, out IProperty<TContainer>)

Gets the property associated with the specified name.
Read time 1 minuteLast updated 10 days ago

Definition

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

TryGetProperty(T, T, IProperty<T>)

bool TryGetProperty(ref TContainer container, TKey key, out IProperty<TContainer> property)

Parameters

container

T
The container hosting the data.

key

T
The key to lookup.

property

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

Returns

Type

Description

bool
true
if the INamedProperties<TContainer> contains a property with the specified name; otherwise,
false
.