Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated HTML file shows only black screen #13

Open
madfatcat opened this issue Apr 5, 2024 · 4 comments
Open

Generated HTML file shows only black screen #13

madfatcat opened this issue Apr 5, 2024 · 4 comments

Comments

@madfatcat
Copy link

Cocos Creator 3.8.2
Building for web-mobile or web-desktop
I'm testing the generated html with ad network tools and everything's fine in desktop browsers. However, when I test with AppLovin and Unity mobile apps on my phone, only empty screen is shown: no world camera rendering, no canvas, no Cocos logo. I played with .adapterrc parameters (isZip etc) - no chance. When building for web-desktop, the text in the html wrapper is seen (Project name in header and reference to cocos in footer), but the game screen itself is empty. Any ideas?

@ppgee
Copy link
Owner

ppgee commented Apr 6, 2024

Can you provide more information? For example, what exceptions are shown in the browser developer tools?

@EmirUgur
Copy link

I'm having the same issue on a simple 3D project with just two mesh renderers, a camera, and a light. Getting a black screen while testing the ad on AppLovin. There are no errors on the debug console.

I believe this only happens in 3D projects. I have a 2D project working without any issues.
Cocos Creator version: 3.8.1

@madfatcat
Copy link
Author

madfatcat commented Apr 17, 2024 via email

@EmirUgur
Copy link

Downgrading to 3.6.0 solved it, thanks.

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

No branches or pull requests

3 participants