ドキュメント

Unity Engine

Unity Engine

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

Gets the property associated with the specified index.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

TryGetProperty(T, int, IProperty<T>)

bool TryGetProperty(ref TContainer container, int index, out IProperty<TContainer> 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
.