This is the old Animancer v7.4 documentation. Click here for the latest version.

Serialization.PropertyAccessor.

Serialization.

ResetValue(SerializedProperty, string) Method

Summary

Resets the value of the UnityEditor.SerializedProperty to the default value of its type by executing its constructor and field initializers.

Syntax

public void ResetValue(SerializedProperty property, string undoName = "Inspector")

Examples

SerializedProperty property;
property.GetAccessor().ResetValue(property);

Remarks

If you don't want to run constructors and field initializers, you can call Animancer.Editor.Serialization.ResetValue(UnityEditor.SerializedProperty,System.String) instead.

Parameters

Name Type Description
property SerializedProperty
undoName string

Return Value

Type Description
void