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
propertySerializedPropertyThe serialized property to set the value for.
valueTThe value to set.
Examples
If T is string, this is simply implemented as
override protected void SetPropertyValue(SerializedProperty property, string value) => property.stringValue = value;