PropertyModification

Defines a single modified property.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Used by the prefab system to track any changes applied to an instance.

Variables
target

Object that will be modified

propertyPath

Property path of the property being modified (Matches as SerializedProperty.propertyPath)

value

The value being applied

objectReference

The value being applied when it is a object reference (which can not be represented as a string)