CopySerializedManagedFieldsOnly(object, object)
Copies the serializable fields from one managed object to another.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
CopySerializedManagedFieldsOnly(Object, Object)
public static void CopySerializedManagedFieldsOnly(object source, object dest)
Parameters
Remarks
This is similar to EditorUtility.CopySerialized, but you can use it with any two managed objects, rather than two instances of the same Object subclass.
CopySerializedManagedFieldsOnlyIf the source object implements the ISerializationCallbackReceiver interface, then its OnBeforeSerialize method is called before any data is read. Similarly, if the destination object implements the ISerializationCallbackReceiver, then its OnAfterDeserialize method is called after data has been copied into its fields.