示例#1
0
 private static void Write(UnsafeWriter writer, PrefabModification value)
 {
     value.Target.WriteTo(writer);
     writer.Write(value.PropertyPath);
     writer.WritePolymorphic(value.Value);
     writer.Write(value.ValueRange.StartOffset);
     writer.Write(value.ValueRange.EndOffset);
     if (value.ObjectReference == null)
     {
         writer.Write(false);
     }
     else
     {
         writer.Write(true);
         value.ObjectReference.WriteTo(writer);
     }
 }
 private static void Write(UnsafeWriter writer, PrefabModification value)
 {
     writer.WritePolymorphic(value.Target);
     writer.Write(value.PropertyPath);
     writer.WritePolymorphic(value.Value);
 }