Skip to content

Conversation

@Lordfirespeed
Copy link

@Lordfirespeed Lordfirespeed commented Mar 27, 2025

.NET Core standalone library compilation was failing due to missing conditional compilation directives.

Also merged master branch.

TorVestergaard and others added 10 commits February 14, 2024 14:59
…enerator's ability to filter away editor-only types from the scanned list.
…voked even though the object is null which led to a NullReferenceException.
…h IL2CPP for iOS or Android, this issue would cause deserialization errors saying. `Error: Reached end of array after X elements, when Y elements were expected.` when using the binary data format. On the surface, the error was due to bad serialization of 8-byte (long/ulong) values resulting in random values occupying the higher four bytes of the value in the serialized data. The ultimate cause after a long period of investigation ended up being an apparent newly introduced compiler error in IL2CPP when translating assemblies to C++, related to inlining of methods that use unsafe code; adding a flag to disable inlining for all binary writer methods that write values larger than 4 bytes resolves the issue.
…not allowed to be called during serialization" and possibly other similar exceptions would be logged during an AOT support scan. Processing and filtering of all registered types for AOT support is now delayed to the end of the scan where the Unity API is legal to use, rather than performed immediately as they are registered.
…ssue would cause some data serialized on iOS using xcode 15 and above to become corrupt; specifically, this issue affected binary serialization of 64 and 128 bit primitive values (long, ulong, double, guid, decimal). In the end, the method of how the data is written to the data buffer was changed entirely in a way that didn't trigger the new xcode compiler bug that caused faulty inlining that would corrupt the memory of stack variables.
Replacing InvariantCulture string equality checks (and a few calls to StartsWith) with Ordinal comparer.
…n addressables due to the PlayerDataGroupSchema type having been removed from the Unity.Addressables module.
…enerator's ability to filter away editor-only types from the scanned list.

(cherry picked from commit 305dedd)
…brary

# Conflicts:
#	OdinSerializer/Unity Integration/SerializedUnityObjects/SerializedBehaviour.cs
#	OdinSerializer/Unity Integration/SerializedUnityObjects/SerializedComponent.cs
#	OdinSerializer/Unity Integration/SerializedUnityObjects/SerializedMonoBehaviour.cs
#	OdinSerializer/Unity Integration/SerializedUnityObjects/SerializedScriptableObject.cs
#	OdinSerializer/Unity Integration/SerializedUnityObjects/SerializedStateMachineBehaviour.cs
#	OdinSerializer/Unity Integration/SerializedUnityObjects/SerializedUnityObject.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants