ドキュメント

Unity Engine

Unity Engine

GetProperty

Gets an IProperty on the specified container for the given PropertyPath.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

GetProperty<T>(T, PropertyPath)

Gets an IProperty on the specified container for the given PropertyPath.
public static IProperty GetProperty<TContainer>(TContainer container, in PropertyPath path)

Parameters

container

T
The container tree to search.

The property path to resolve.

Returns

Type

Description

IPropertyThe IProperty for the given path.

Remarks

While the container data is not actually read from or written to. The container itself is needed to resolve polymorphic fields and list elements.

GetProperty<T>(T, PropertyPath)

Gets an IProperty on the specified container for the given PropertyPath.
public static IProperty GetProperty<TContainer>(ref TContainer container, in PropertyPath path)

Parameters

container

T
The container tree to search.

The property path to resolve.

Returns

Type

Description

IPropertyThe IProperty for the given path.

Remarks

While the container data is not actually read from or written to. The container itself is needed to resolve polymorphic fields and list elements.