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。数字可调。
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。数字可调。