SerializedProperty.Copy Manual     Reference     Scripting  
Scripting > Editor Classes > SerializedProperty
SerializedProperty.Copy

function Copy () : SerializedProperty

Description

Duplicates the SerializedProperty.

This lets you keep a reference to a specific property. Note that if an array size before to the copied property is modified this and this property is then accessed, then this might lead to memory corruption.