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); }
private static UnitySceneData Read(UnsafeReader reader) { return(new UnitySceneData(PropertiesDataMarshaller.Unmarshal(reader), EventHandlersMarshaller.Unmarshal(reader), ScriptToGuidMarshaller.Unmarshal(reader), SceneHierarchy.Read(reader))); }