Une erreur est survenue lors de l’exécution du contenu Unity sur la page du build WebGL
Description du problème
The issue appears in some cases when logging in to a WebGL build. The following error message is displayed:
The problem occurs because the IL2CPP compiler is used when building in WebGL. It optimizes the project and removes unused code from libraries. The compiler cannot correctly determine whether a module, class, or method is being used in a project if reflection is used to retrieve objects. The problem is described in more detail in the Unity documentation.
Issue status: Can’t be fixed on the SDK side.
Contournement
- Open Unity project.
- In the main menu, go to
Edit > Project Settings . - In the
Player section, go to the WebGL build settings tab. - Go to the
Other Settings section. - Uncheck
Strip engine code box. - Go to the
Publishing Settings section. - Check the
Decompression Fallback box. - Create a new WebGL build.
Faute de frappe ou autre erreur dans le texte ? Sélectionnez le texte concerné et appuyez sur Ctrl+Entée.