cocoscreator3d 自定义mesh。1.2/3.0pre亲测可用
程序员文章站
2022-03-04 12:49:15
...
const plane = primitives.plane({ width: 10, length: 10, widthSegments: 50, lengthSegments: 50 });
const mesh = utils.createMesh(plane);
this.node.getComponent(ModelComponent).mesh = mesh;
需要引入utils, ModelComponent。数字可调。