Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetProperty

Gets an IProperty on the specified container for the given PropertyPath.
Read time 1 minuteLast updated 12 days ago

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.