Closed cy920820 closed 3 months ago
To address the issue of a black snowflake screen when adding a sprite on iOS, ensure that WebGL context loss handling is correctly implemented. Refer to the WebGL context restore feature introduced in version 3.80.0. Specifically, check the following:
WebGLRenderer
emits LOSE_WEBGL
and RESTORE_WEBGL
events.WebGLPipeline
and RenderTarget
classes have the necessary changes to support context restoration.WebGLContextRestore.md
file for detailed implementation steps.Example:
this.renderer.on('contextrestored', () => {
// Recreate your textures or other WebGL resources here
});
For more details, see the WebGLContextRestore.md.
/changelog/3.80/CHANGELOG-v3.80.md /changelog/3.80/WebGLContextRestore.md /changelog/3.15/CHANGELOG-v3.15.md
What is it supposed to look like? When does it happen? What actually happens?
Upload the actual assets and sample code that shows what happens.
You need to give a lot more details in your issues, they are next to impossible to help with.
This isn't a forum or Discord. If you need real-time feedback on code, those would be much better places to ask. GitHub is for bugs in Phaser you have identified and can demonstrate with a clear test case.
Version
Description
Create a background image using add.sprite, occasionally featuring a black snowflake screen
Example Test Code
Additional Information