UnityEditor.EditorUtility.InternalCopySerializedIfDifferent C# (CSharp) Method

InternalCopySerializedIfDifferent() private method

private InternalCopySerializedIfDifferent ( Object source, Object dest ) : void
source Object
dest Object
return void
        private static extern void InternalCopySerializedIfDifferent(Object source, Object dest);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

示例#1
0
 public static void CopySerializedIfDifferent(UnityEngine.Object source, UnityEngine.Object dest)
 {
     if (source == null)
     {
         throw new ArgumentNullException("Argument 'source' is null");
     }
     if (dest == null)
     {
         throw new ArgumentNullException("Argument 'dest' is null");
     }
     EditorUtility.InternalCopySerializedIfDifferent(source, dest);
 }
EditorUtility