We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.8.4
android xiaomi tablet
封装判空的 createMesh 方法传入两个可选参数导致 android 端崩溃
No response
新建节点绑定以下脚本即可
import { _decorator, Component, Mesh, MeshRenderer, Node, utils } from 'cc'; const { ccclass, property } = _decorator; @ccclass('test') export class test extends Component { start() { const createMesh: typeof utils.MeshUtils.createMesh = (geo, out, opt) => { console.log('@@@', geo, out, opt); if (geo.positions.length > 0) { return utils.MeshUtils.createMesh(geo, out, opt); } return new Mesh(); } this.getComponent(MeshRenderer).mesh = createMesh({ positions: [0, 0, 0, 1, 0, 0, 0, 1, 0] }); } update(deltaTime: number) { } }
The text was updated successfully, but these errors were encountered:
web端没提示warn或error吗
Sorry, something went wrong.
没有嘞好像 @longchuan
No branches or pull requests
Cocos Creator version
3.8.4
System information
android xiaomi tablet
Issue description
封装判空的 createMesh 方法传入两个可选参数导致 android 端崩溃
Relevant error log output
No response
Steps to reproduce
新建节点绑定以下脚本即可
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: