Documentation

Unity Engine

Unity Engine

TryGetProperty(ref TList, int, out IProperty<TList>)

Gets the property associated with the specified index.
Read time 1 minuteLast updated a month ago

Definition

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

TryGetProperty(T, int, IProperty<T>)

public bool TryGetProperty(ref TList container, int index, out IProperty<TList> property)

Parameters

container

T
The container hosting the data.

index

The index of the property to get.

property

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

Returns

Type

Description

bool
true
if the IIndexedProperties<TContainer> contains a property for the specified index; otherwise,
false
.