Method SetPropertyValue
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Gamelogic.Extensions.Editor.dll
SetPropertyValue(SerializedProperty, T)
Sets the value of the serialized property based the given value.
protected abstract void SetPropertyValue(SerializedProperty property, T value)
Parameters
property
SerializedPropertyThe serialized property to set the value for.
value
TThe value to set.
Examples
If T
is string, this is simply implemented as
override protected void SetPropertyValue(SerializedProperty property, string value) => property.stringValue = value;