大约有 242 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
Laya3.0_api(85) Laya_社区(71) Laya2.0_api(21) laya_api(20) Laya_示例(14) Laya3.0_文档(13) Laya2.0_示例(9) Laya2.0_文档(9)
... Laya.init(600,400); this.hahaha(); } private hahaha(): void { var assets: Array<any> = []; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { var texture:Texture = Laya.loader.getRes("start...
来源: Laya_社区 发布时间: 20170329
...on(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void Defined in laya/d3/core/particleShuriKen/module/shape/BaseShape.ts:54 用于生成粒子初始位置和方向。 Parameters position: Vector3 粒子位置。 direction: Vector3 粒子方向。 Default value rand:...
来源: Laya3.0_api 发布时间: 20231115
...被添加到舞台后 onEnable(): void { // 给List对象赋值 var data: Array<any> = []; for (var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查...
来源: Laya3.0_文档 发布时间: 20251010
...in.set("passwd",""); var buffer:any = login.encode().toBuffer(); byte.writeArrayBuffer(buffer); this.socket.socket.flush(); }请问我的做法对吗?一般来说TS项目如何正确的使用protobuf发送与解析websocket通讯数据? 2017-02-17 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170217
...key value数组),可以设置Cookie么? 如这样子: var headers:Array<any> = new Array<any>(); headers.push("Cookie", "token=xxxxx"); 但提示Refused to set unsafe header "Cookie".请问如何解决? 2017-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170606
...andler = new Laya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPublicSpacesData (_publicSpacesInfo:any) : void ///调用这个方 传入参数 里面有每一个图片的名字 { this.publicSpacesInfo = _publicSpacesInfo; thi...
来源: Laya_社区 发布时间: 20170923
...ytesAvailable endian length pos Methods clear getUTFBytes getUTFString readArrayBuffer readByte readFloat32 readFloat32Array readFloat64 readInt16 readInt16Array readInt32 readString readUint16 readUint32 readUint8 readUint8Array writeArrayBuffer writeByte writeFloat32 writeFloat64 writeInt16 writeI...
来源: Laya3.0_api 发布时间: 20231115
...ties w x y z DEFAULT NAN Methods clone cloneTo equals forNativeElement fromArray getYawPitchRoll identity invert length lengthSquared normalize rotateX rotateY rotateZ scaling set setValue add createFromAxisAngle createFromMatrix4x4 createFromYawPitchRoll dot forwardLookAt invert lerp lookAt multipl...
来源: Laya3.0_api 发布时间: 20231102
...e 是否可读。 Returns IndexBuffer3D Properties _buffer _buffer: Float32Array | Uint16Array | Uint8Array | Uint32Array Inherited from Buffer._buffer Defined in laya/RenderEngine/Buffer.ts:8 _bufferType _bufferType: number Inherited from Buffer._bufferType Defined in laya/RenderEngine/Buffer.ts:10...
来源: Laya3.0_api 发布时间: 20231115
...llei类: 动画文件统一在GameAni.ani内制作 private var aniArr:Array = [ "res/atlas/role/hero.atlas", "res/atlas/role/monster/monsterA/die.atlas", "res/atlas/role/monster/monsterA/move.atlas" ]; Laya.loader.load(aniArr, Handler.c...
来源: Laya_社区 发布时间: 20170619