Пример #1
0
 private static void Write(UnsafeWriter writer, UnitySceneData value)
 {
     PropertiesDataMarshaller.Marshal(writer, value.PropertiesData);
     EventHandlersMarshaller.Marshal(writer, value.ShortNameToScriptFileId);
     ScriptToGuidMarshaller.Marshal(writer, value.ScriptMapping);
     value.SceneHierarchy.WriteTo(writer);
 }
Пример #2
0
 private static UnitySceneData Read(UnsafeReader reader)
 {
     return(new UnitySceneData(PropertiesDataMarshaller.Unmarshal(reader), EventHandlersMarshaller.Unmarshal(reader),
                               ScriptToGuidMarshaller.Unmarshal(reader), SceneHierarchy.Read(reader)));
 }