Skip to content

ExecutionEngineException when serialising derived class on mobile #2440

@daniellochner

Description

@daniellochner

Hi there!

I encounter the following error on mobile when serializing a derived class. This only seems to happen on mobile (iOS, haven't tested Android yet), and works fine on other platforms:

ExecutionEngineException: Attempting to call method 'DanielLochner.Assets.CreatureCreator.AttachedLimb::Serialize<Unity.Netcode.BufferSerializerWriter>' for which no ahead of time (AOT) code was generated.  Consider increasing the --generic-virtual-method-iterations=1 argument

Here is a link to the script:
https://github.com/daniellochner/creature-creator-game/blob/main/Assets/CreatureCreator/Scripts/Runtime/Data/AttachedBodyParts/AttachedLimb.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stat:importedStatus - Issue is tracked internally at Unitytype:docsDocs feedback or issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions