• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,709 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)

271. 我用laya.websocket通信 二进制数据, 服务器对二进制数据进行解析,解析出来不是预期,请问我哪里写错了? 代码如下 [ 65%]

...             dv.setUint16(10, 0, false);             dv.setUint32(12, 0, false);             dv.setUint32(16, 0, false);                       console.log("befor new Uint16Array(b, 20, str.length)");             var context = new Uint16Array(b, 20, str.length);   ...

来源: Laya_社区 发布时间: 20170628

272. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 65%]

...发者才可以找到一些游戏的解决方案。 SF • 2019-06-28 11:32 laya 那帮人也是甩锅甩的贼6 ,最恶心这熊样, 熊猫大侠 • 2018-06-08 15:30 @Laya_Aaron:我问的楼主 。。。 Laya_Aaron • 2018-06-08 15:32 @熊猫大侠:恩 cwugs • 2018-06-10 18:40 我是通过...

来源: Laya_社区 发布时间: 20180608

273. laya.d3.core.particleshuriken.module.shape.CircleShape_API3.0 [ 65%]

...tion(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Overrides BaseShape.generatePositionAndDirection Defined in laya/d3/core/particleShuriKen/module/shape/CircleShape.ts:78 用于生成粒子初始位置和方向。 override Parameters position: Vector3 粒子...

来源: Laya3.0_api 发布时间: 20231115

274. laya默认模型的阴影没有渲染 [ 65%]

...型显示对象 var sphere3D=new Laya.MeshSprite3D(new Laya.SphereMesh(1, 32, 32)); sphere3D.transform.translate(new Laya.Vector3(0,1,-5)); var box = scene.addChild(sphere3D); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material = new Laya.StandardMaterial(); // material.d...

来源: Laya_社区 发布时间: 20180717

275. websocket 中 protobuf 数据的发送与接收的具体方法是怎样的? [ 65%]

...y = pack.MSG_HEADER; var byte:Laya.Byte = this.socket.output; byte.writeInt32(MSG_HEADER.LoginGame);//和服务端约定好,前四个字节存放协议的名称 var login:any = new pack.LoginGame; login.set("account",""); login.set("passwd",""); var buffer:any = login.encode().toBuffer(); byte.wri...

来源: Laya_社区 发布时间: 20170217

276. laya.maths.Quaternion_API3.0 [ 64%]

...on Returns boolean forNativeElement forNativeElement(nativeElements?: Float32Array): void Defined in laya/maths/Quaternion.ts:617 Parameters Default value nativeElements: Float32Array = null Returns void fromArray fromArray(array: any[], offset?: number): void Defined in laya/maths/Quaternion.ts:463...

来源: Laya3.0_api 发布时间: 20231115

277. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 64%]

...shSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(5, 32, 32))) as MeshSprite3D; earth1.transform.translate(new Vector3(10, 20, -8)); var earthMat:BlinnPhongMaterial = new BlinnPhongMaterial(); earthMat.albedoTexture = tex; earthMat.albedoIntensity = 1; earth1.meshRenderer.mater...

来源: Laya2.0_文档 发布时间: 20210715

278. Laya2.9Unity插件问题 [ 64%]

...0d265c8>:0) LayaAir3D.exportResource (System.Boolean isDebug, System.Int32 Platformindex, System.String lastname) (at <8191b0b4723d4658b95c167f60d265c8>:0) LayaAir3D.ExportResources () (at <8191b0b4723d4658b95c167f60d265c8>:0) LayaAir3D.OnGUI () (at <8191b0b4723d4658b95c167f60d265c...

来源: Laya_社区 发布时间: 20201212

279. layabox能不能由xml生成节点 [ 64%]

...Id=72"/>' + '<Label y="0" x="0" width="32" visible="false" valign="middle" text="1" name="id" height="32" editorInfo="compId=61"/>' + '<Label y="6" x="99" width="185&qu...

来源: Laya_社区 发布时间: 20161201

280. 1.7.9LayaIDE 发布出现Cannot find module 'colors'错误 [ 64%]

...app/node_modules/layacmd/print.js:115:3) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) 如图   附件 : --> 2017-08-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

来源: Laya_社区 发布时间: 20170812