GetValue
Gets the value of a property by name.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
GetValue<T, U>(T, string)
Gets the value of a property by name.
public static TValue GetValue<TContainer, TValue>(TContainer container, string name)
Parameters
The name of the property to get.
Returns
Type | Description |
|---|---|
| T | The value for the specified name. |
GetValue<T, U>(T, string)
Gets the value of a property by name.
public static TValue GetValue<TContainer, TValue>(ref TContainer container, string name)
Parameters
The name of the property to get.
Returns
Type | Description |
|---|---|
| T | The value for the specified name. |
GetValue<T, U>(T, PropertyPath)
Gets the value of a property by path.
public static TValue GetValue<TContainer, TValue>(TContainer container, in PropertyPath path)
Parameters
The path of the property to get.
Returns
Type | Description |
|---|---|
| T | The value at the specified path. |
GetValue<T, U>(T, PropertyPath)
Gets the value of a property by path.
public static TValue GetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path)
Parameters
The path of the property to get.
Returns
Type | Description |
|---|---|
| T | The value at the specified path. |