SetValue
Sets the value of a property by name to the given value.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.Properties
- Assembly: UnityEngine.PropertiesModule
SetValue<T, U>(T, string, T)
Sets the value of a property by name to the given value.
public static void SetValue<TContainer, TValue>(TContainer container, string name, TValue value)
Parameters
The name of the property to set.
Remarks
This method is NOT thread safe.
SetValue<T, U>(T, string, T)
Sets the value of a property by name to the given value.
public static void SetValue<TContainer, TValue>(ref TContainer container, string name, TValue value)
Parameters
The name of the property to set.
Remarks
This method is NOT thread safe.
SetValue<T, U>(T, PropertyPath, T)
Sets the value of a property at the given path to the given value.
public static void SetValue<TContainer, TValue>(TContainer container, in PropertyPath path, TValue value)
Parameters
The path of the property to set.
Remarks
This method is NOT thread safe.
SetValue<T, U>(T, PropertyPath, T)
Sets the value of a property at the given path to the given value.
public static void SetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, TValue value)
Parameters
The path of the property to set.
Remarks
This method is NOT thread safe.