TryGetValue
Gets the value of a property by name.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
TryGetValue<T, U>(T, string, T)
Gets the value of a property by name.
public static bool TryGetValue<TContainer, TValue>(TContainer container, string name, out TValue value)
Parameters
The name of the property to get.
Returns
Type | Description |
|---|---|
| bool | |
TryGetValue<T, U>(T, string, T)
Gets the value of a property by name.
public static bool TryGetValue<TContainer, TValue>(ref TContainer container, string name, out TValue value)
Parameters
The name of the property to get.
Returns
Type | Description |
|---|---|
| bool | |
TryGetValue<T, U>(T, PropertyPath, T)
Gets the value of a property by path.
public static bool TryGetValue<TContainer, TValue>(TContainer container, in PropertyPath path, out TValue value)
Parameters
The path of the property to get.
Returns
Type | Description |
|---|---|
| bool | |
TryGetValue<T, U>(T, PropertyPath, T)
Gets the value of a property by path.
public static bool TryGetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, out TValue value)
Parameters
The path of the property to get.
Returns
Type | Description |
|---|---|
| bool | |
TryGetValue<T, U>(T, PropertyPath, T, VisitReturnCode)
Gets the value of a property by path.
public static bool TryGetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, out TValue value, out VisitReturnCode returnCode)
Parameters
The path of the property to get.
When this method returns, contains the return code.
Returns
Type | Description |
|---|---|
| bool | |