Your comments

Hi Lazlo,

thanks for getting back to me, I managed to find a way around this and sorted it.

Note: this also happens without the console warning above.

Hi,
I just tried updating and it still occurs.
There is message in the console:

Failed to serialize behaviour.
System.Runtime.Serialization.SerializationException: Serialization of 'Bolt.Variables' failed. ---> System.ArgumentException: Only single dimensional arrays are supported for the requested action.
at System.Array.GetValue (System.Int32 index) [0x00009] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Array.System.Collections.IList.get_Item (System.Int32 index) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
at Ludiq.FullSerializer.fsArrayConverter.TrySerialize (System.Object instance, Ludiq.FullSerializer.fsData& serialized, System.Type storageType) [0x0002e] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0000f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00057] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00027] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0004f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsReflectedConverter.TrySerialize (System.Object instance, Ludiq.FullSerializer.fsData& serialized, System.Type storageType) [0x00059] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0000f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0001d] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00081] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0004f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsIEnumerableConverter.TrySerialize (System.Object instance_, Ludiq.FullSerializer.fsData& serialized, System.Type storageType) [0x0003c] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0000f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0001d] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00081] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0004f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsReflectedConverter.TrySerialize (System.Object instance, Ludiq.FullSerializer.fsData& serialized, System.Type storageType) [0x00059] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0000f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0001d] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00081] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0004f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsReflectedConverter.TrySerialize (System.Object instance, Ludiq.FullSerializer.fsData& serialized, System.Type storageType) [0x00059] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0000f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00057] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00000] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x00081] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Type overrideConverterType, System.Object instance, Ludiq.FullSerializer.fsData& data) [0x0004f] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.Serialization.SerializeJson (Ludiq.FullSerializer.fsSerializer serializer, System.Object instance, System.Boolean forceReflected) [0x00015] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.Serialization.Serialize (System.Object value, System.Boolean forceReflected) [0x0000c] in <0c215dcd73b64ea081955bf35be307b8>:0
--- End of inner exception stack trace ---
at Ludiq.Serialization.Serialize (System.Object value, System.Boolean forceReflected) [0x00066] in <0c215dcd73b64ea081955bf35be307b8>:0
at Ludiq.LudiqBehaviour.UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize () [0x00014] in <0c215dcd73b64ea081955bf35be307b8>:0
UnityEngine.Debug:LogError(Object, Object)
Ludiq.LudiqBehaviour:UnityEngine.ISerializationCallbackReceiver.OnBeforeSerialize()
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

Anything? Is this even possible in Bolt?

Sorted using On Focus.

I tried that but that doesn't help, it actually blocks what is currently working.

If I change to exit on suspend, when I resume it, it just restart the app, and doesn't trigger the on suspend behaviour at all.

Currently the suspend behaviour works: if I suspend the app, a datetime is saved and when resumed, datetime.now it is checked, how much time has passed is calculated and returned, converted to a float and printed as text.

But if I restart from quit, the above doesn't happen, the text box doesn't show up, which is the intended behaviour to happen if the variable that saved the datetime returns a null.

Which leads me to believe that nothing has been saved "on quit".

What I'm trying to figure out is what is the right event to use on closing an iOS app so that it saves datetime.now to the intended variable.

Works in editor, so it must be something iOS-related, not Bolt-related.

I double checked and DontDestroyOnLoad only includes variable saver and global event listener.

After further investigation, I also noticed that not only this loads the same scene instead of the next one, but also it has a 0.5 secs break. This is the behaviour I programmed in an earlier version of the macro, which I then changed.

A similar issue (Phantom wait not longer in the macro) I noticed is happening in a different macro.

Any chance I can invite you to the project?

I tried, no difference, it still loads from scene 00 to 01, but then it keeps loading 01.

Or if I start from scene 02, keeps loading 02.

Happy to report I found a solution.

Xcode said something about not finding a divisor, and the only divisor is the Unit "Mathf Get PI". I just replaced that unit with a float with the value 3.14 and it all works like a charm.

Always! I don't breath without running AOT pre-build.

All other graphs work as expected, it's only this particular one which doesn't seem to work on the iOS build.