大约有 3 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0021 秒)
...灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let offset = i * 4; colorBuffer[offset] = Math.random(); colorBuffer[offset + 1] = Math.random(); colorBuffer[o...
来源: Laya3.0_文档 发布时间: 20251010
...的优势。 2.4 混淆资源 如果勾选,在打包资源的时候,会随机混淆资源,主要作用是避免在上架的时候被平台扫描到某些敏感函数。 2.5 资源服务器URL 填写服务器地址即可,注意要在地址后加上index.js。 例如:http://192.168.31.109:80...
来源: Laya3.0_文档 发布时间: 20251010
... */ /**增加圆锥形刚体碰撞器 */ private addCone(): void { //生成随机值半径和高 let raidius = Math.random() * 0.2 + 0.2; let height = Math.random() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone.addComponent(Laya.MeshFilter); let...
来源: Laya3.0_文档 发布时间: 20251010