I have the problem that I have made my project for android and I have finished it and I also want to do it for IOS but when I change the platform to IOS, I get the following problem when i try to change a scene
AC Version 1.78.0
Unity Version 2022.3.5f1
InvalidOperationException: AC.SceneItemSpawnData cannot be serialized because it does not have a parameterless constructor.
Rethrow as InvalidOperationException: Cannot serialize member 'AC.SingleLevelData.allSceneItemSpawnData' of type 'System.Collections.Generic.List1[[AC.SceneItemSpawnData, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]', see inner exception for more details. System.Xml.Serialization.StructModel.CheckSupportedMember (System.Xml.Serialization.TypeDesc typeDesc, System.Reflection.MemberInfo member, System.Type type) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.StructModel.CheckSupportedMember (System.Xml.Serialization.TypeDesc typeDesc, System.Reflection.MemberInfo member, System.Type type) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.StructModel.GetFieldModel (System.Reflection.FieldInfo fieldInfo) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.StructModel.GetFieldModel (System.Reflection.MemberInfo memberInfo) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.InitializeStructMembers (System.Xml.Serialization.StructMapping mapping, System.Xml.Serialization.StructModel model, System.Boolean openModel, System.String typeName, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.ImportStructLikeMapping (System.Xml.Serialization.StructModel model, System.String ns, System.Boolean openModel, System.Xml.Serialization.XmlAttributes a, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeModel model, System.String ns, System.Xml.Serialization.XmlReflectionImporter+ImportContext context, System.String dataType, System.Xml.Serialization.XmlAttributes a, System.Boolean repeats, System.Boolean openModel, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) Rethrow as InvalidOperationException: There was an error reflecting type 'AC.SingleLevelData'. System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeModel model, System.String ns, System.Xml.Serialization.XmlReflectionImporter+ImportContext context, System.String dataType, System.Xml.Serialization.XmlAttributes a, System.Boolean repeats, System.Boolean openModel, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeModel model, System.String ns, System.Xml.Serialization.XmlReflectionImporter+ImportContext context, System.String dataType, System.Xml.Serialization.XmlAttributes a, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.CreateArrayElementsFromAttributes (System.Xml.Serialization.ArrayMapping arrayMapping, System.Xml.Serialization.XmlArrayItemAttributes attributes, System.Type arrayElementType, System.String arrayElementNs, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.ImportArrayLikeMapping (System.Xml.Serialization.ArrayModel model, System.String ns, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeModel model, System.String ns, System.Xml.Serialization.XmlReflectionImporter+ImportContext context, System.String dataType, System.Xml.Serialization.XmlAttributes a, System.Boolean repeats, System.Boolean openModel, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0) Rethrow as InvalidOperationException: There was an error reflecting type 'System.Collections.Generic.List
1[AC.SingleLevelData]'.
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeModel model, System.String ns, System.Xml.Serialization.XmlReflectionImporter+ImportContext context, System.String dataType, System.Xml.Serialization.XmlAttributes a, System.Boolean repeats, System.Boolean openModel, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0)
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Xml.Serialization.TypeModel model, System.String ns, System.Xml.Serialization.XmlReflectionImporter+ImportContext context, System.String dataType, System.Xml.Serialization.XmlAttributes a, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0)
System.Xml.Serialization.XmlReflectionImporter.ImportElement (System.Xml.Serialization.TypeModel model, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace, System.Xml.Serialization.RecursionLimiter limiter) (at <7fcddeed965246b69b2218bb4b12c6d7>:0)
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping (System.Type type, System.Xml.Serialization.XmlRootAttribute root, System.String defaultNamespace) (at <7fcddeed965246b69b2218bb4b12c6d7>:0)
System.Xml.Serialization.XmlSerializer..ctor (System.Type type, System.String defaultNamespace) (at <7fcddeed965246b69b2218bb4b12c6d7>:0)
System.Xml.Serialization.XmlSerializer..ctor (System.Type type) (at <7fcddeed965246b69b2218bb4b12c6d7>:0)
AC.FileFormatHandler_Xml.SerializeObject[T] (System.Object dataObject) (at Assets/AdventureCreator/Scripts/Save system/FileFormat/FileFormatHandler_Xml.cs:29)
AC.FileFormatHandler_Xml.SerializeAllRoomData (System.Collections.Generic.List`1[T] dataObjects) (at Assets/AdventureCreator/Scripts/Save system/FileFormat/FileFormatHandler_Xml.cs:87)
AC.SaveOperation.SendSaveToFile () (at Assets/AdventureCreator/Scripts/Save system/SaveOperation.cs:146)
AC.SaveOperation.BeginOperation (AC.SaveData& saveData, AC.SaveFile saveFile) (at Assets/AdventureCreator/Scripts/Save system/SaveOperation.cs:83)
AC.SaveSystem+d__55.MoveNext () (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:995)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/Coroutines.cs:17)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
AC.SaveSystem:SaveSaveGame(Int32, Boolean, String) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:938)
AC.SaveSystem:SaveGame(Int32, Int32, Boolean, Boolean, String) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:904)
AC.ActionSaveHandle:PerformSaveOrLoad() (at Assets/AdventureCreator/Scripts/Actions/ActionSaveHandle.cs:212)
AC.ActionSaveHandle:Run() (at Assets/AdventureCreator/Scripts/Actions/ActionSaveHandle.cs:69)
AC.d__46:MoveNext() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:467)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
AC.ActionList:ProcessAction(Int32) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:408)
AC.ActionList:BeginActionList(Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:378)
AC.ActionList:Interact(Int32, Boolean) (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:279)
AC.ActionList:Interact() (at Assets/AdventureCreator/Scripts/ActionList/ActionList.cs:242)
AC.SceneSettings:PlayStartCutscene() (at Assets/AdventureCreator/Scripts/Game engine/SceneSettings.cs:345)
AC.SceneSettings:OnStart() (at Assets/AdventureCreator/Scripts/Game engine/SceneSettings.cs:110)
AC.d__46:MoveNext() (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:759)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
AC.SaveSystem:InitAfterLoad(Int32) (at Assets/AdventureCreator/Scripts/Save system/SaveSystem.cs:669)
AC.MultiSceneChecker:RunStartProcess() (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:122)
AC.MultiSceneChecker:Start() (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:54)
The problem is only when i am building for IOS, when the platform is for Android it works
https://ibb.co/094jb4x
This issue has been resolved in the latest release - import v1.78.3 and it should be OK.