cocos-engine
cocos-engine copied to clipboard
Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games...
check max level count actually there is already a function `getLevelCount` in the `GFXTexture.cpp` to calculate the max count, but i didn't move this function to somewhere for common use...
Re: # ### Changelog * ------- ### Continuous Integration This pull request: * [ ] needs automatic test cases check. > Manual trigger with `@cocos-robot run test cases` afterward. *...
### Cocos Creator version 3.8.1 ### System information any ### Issue description 每一个 Tile格子的顶点数据应该是 4*9(pos,uv,color)=36 位,但是计算最大格子数量时,除的是 6   ### Relevant error log output _No response_ ### Steps to reproduce...
### Cocos Creator version 3.8.1 ### System information any ### Issue description 真实使用场景,基于label的长度,动态设置背景的宽度。 //可复现问题的代码 private onLoad(){ this.titlelabel.node.on(Node.EventType.SIZE_CHANGED, () => { this.onTextSizeChange() }); } private onTextSizeChange(){ this.bg.node.transform.width = this.titlelabel.transform.width + 50...
### Use Case openharmony update api11 ### Problem Description openharmony update api11 ### Proposed Solution _No response_ ### How it works _No response_ ### Alternatives Considered openharmony update api11 ###...
As the title said, steps to reproduce: - write a test case that uses `file://` to update contents - - build a web version - run in webview And the...
### Cocos Creator version 3.8.2 ### System information 原生 ### Issue description 在native中,使用fsUtils.readDir得到的结果是绝对路径,但是在小游戏和nodejs的fs对应的readdir得到的结果是相对路径。 期望原生能和小游戏的保持一致,返回相对的路径。 ### Relevant error log output _No response_ ### Steps to reproduce 分别在小游戏和原生的时候调用readDir对比结果。 ### Minimal reproduction project...
I've tried deprecated like this  but it seems the ts language service cannot distinguash the enum and string type,  I guess it is because the `NodeEventType` enum value...
### Cocos Creator version 3.7.3 ### System information any ### Issue description when the following effect is used. the normal and error images are as below. ### Relevant error log...
### Cocos Creator version Full version ### System information IOS 17.0.2, IOS 17.0.3 ### Issue description ### Relevant error log output _No response_ ### Steps to reproduce 1. Build Webmobile...