◆ SetValue()

static void SetValue ( this SerializedProperty  property,
object  value,
bool  displayWarnings = false 
)
static
Parameters
propertyThe function will assign a value to the runtime contents of this SerializedProperty.
valueThis is the object derived value that will be stored in the runtime field.
displayWarningsWhen True, and warnings generated when attempting to set the value referenced by the SerializedProperty, will be displayed in the console. Defaults to False (failure without notification).