Table of Contents

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 SerializedProperty

The serialized property to set the value for.

value T

The value to set.

Examples

If T is string, this is simply implemented as

override protected void SetPropertyValue(SerializedProperty property, string value) => property.stringValue = value;