article thumbnail

Debugging Complications

Ask a Game Dev

Sometimes a bug is easy to catch. Sometimes a bug is difficult to reproduce. Here are some of the qualities that can make a bug difficult to nail down: [ Build-specific ] - The bug only shows up in release or final builds. Platform-specific - The bug only shows up on a particular platform (e.g.

Debug 40
article thumbnail

Force updating Label with cache mode CHAR gives error in DEBUG MODE

Cocos

Hello all, While using a label with cache mode CHAR and assigning empty string, then calling updateRenderData(true) gives error for failing assert in RenderData.updateRenderData in DEBUG mode in native.(web This might be a bug in CC3.8.3 web works fine) Any help to fix this would be appreciated. since it was working fine in CC3.8.2.

Debug 40
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Change node color (bug?) - ???

Cocos

For debugging, I set node color default to (170,170,170) then using script it will increase to 255 in “duration”. I’m using Cocos Creator 2.4.6, somehow I try to change the node color via script is not working. I remember it used to work. 我在使用Cocos Creator 版本 2.4.6 2D, 我想要透过typescript更改node的颜色但是不能,我记得好像以前是没问题的。

Bug 52
article thumbnail

Change node color (bug?) - ???

Cocos

For debugging, I set node color default to (170,170,170) then using script it will increase to 255 in “duration”. I’m using Cocos Creator 2.4.6, somehow I try to change the node color via script is not working. I remember it used to work. 我在使用Cocos Creator 版本 2.4.6 2D, 我想要透过typescript更改node的颜色但是不能,我记得好像以前是没问题的。

Bug 52
article thumbnail

Bug: Simulator not rendering ttf font

Cocos

You can debug the following code to see if there are any exceptions. The same didn’t work on Mac. Issues happen with CC 3.7.2 This situation may be caused by the failure of font loading, you can see if there is an output error message?

article thumbnail

How to check TS bug like this in android build

Cocos

enable the Debug option disable the Encrypt JS option build debug in Android Studio then you can address the specific line when the JS code causes errors. On the Build Panel, try the following steps.

Build 52
article thumbnail

Maybe a bug? Function.name

Cocos

It works ok when debugging. When building my cocos creator 3.8 project to web the.name variable of function returns wrong answer. (“t”/“e” t”/“e” instead of the real function name). editor/browser/simulator) but stop working when building it. build) In the build settings “Erase module structure” is selected. Otherwise it doesn’t work for me).

Bug 40