cocos-pnp icon indicating copy to clipboard operation
cocos-pnp copied to clipboard

Generated HTML file shows only black screen

Open madfatcat opened this issue 1 year ago • 4 comments

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?

madfatcat avatar Apr 05 '24 22:04 madfatcat

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

ppgee avatar Apr 06 '24 08:04 ppgee

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

EmirUgur avatar Apr 17 '24 12:04 EmirUgur

I downgraded to 3.6.0 and everything Ok now.

On 17 Apr 2024, at 13:55, Emir Uğur @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/ppgee/cocos-pnp/issues/13#issuecomment-2061196203, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYUQFTLBACO4DOOLQTMC6LY5ZWKVAVCNFSM6AAAAABFZ32E2KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRRGE4TMMRQGM. You are receiving this because you authored the thread.

madfatcat avatar Apr 17 '24 12:04 madfatcat

Downgrading to 3.6.0 solved it, thanks.

EmirUgur avatar Apr 17 '24 13:04 EmirUgur