大约有 1,597 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0183 秒)
Laya_社区(1082) Laya3.0_api(185) Laya2.0_api(130) laya_api(125) Laya2.0_文档(36) Laya3.0_文档(26) Laya2.0_示例(7) Laya_示例(6)
getimagedata直接调用无法获取有效像素问题 更新: 在 现在有没有办法把一个display.sprite转存成图片 无意间找到了 答案 getimagedata无法直接使用 1 需要先 c= Laya.stage.drawToCanvas(720,1280, 0,0) 2 然后 调用 t = new Trxture(c); t.getPixels(0,0, 720,...
来源: Laya_社区 发布时间: 20171201
...ite:Node, dstSprite:Node):void[override] 克隆。 TrailSprite3D _parse(data:Object, spriteMap:Object):void[override] TrailSprite3D _setBelongScene(scene:Node):void[override] RenderableSprite3D _setUnBelongScene():void[override] RenderableSprite3D addChild(node:Node):Node 添加子节点。 No...
来源: Laya2.0_api 发布时间: 20190513
...送到服务端呢?我的做法是这样子的: private onAssetsLoaded(data:string):void{ var pack:any = this.ProtoBuf.loadProto(data).build("test"); var MSG_HEADER:any = pack.MSG_HEADER; var byte:Laya.Byte = this.socket.output; byte.writeInt32(MSG_HEADER.LoginGame);//和服务端约定好,前...
来源: Laya_社区 发布时间: 20170217
... URL 类似 ws://yourdomain:port。 Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...
来源: Laya3.0_api 发布时间: 20231115
...renceCount cpuMemory gpuMemory Methods _addReference _clearReference _cloneDatasToAnimator _removeReference _setCPUMemory _setCreateURL _setGPUMemory clone cloneTo destroy event hasListener isCreateFromURL off offAll offAllCaller on once _parse destroyUnusedResources load Constructors constructor ne...
来源: Laya3.0_api 发布时间: 20231102
...erence Defined in laya/resource/Resource.ts:220 Returns void _parse _parse(data: glTF, createURL: string, progress?: IBatchProgress): Promise<void> Defined in laya/gltf/glTFResource.ts:77 Parameters data: glTF createURL: string Optional progress: IBatchProgress Returns Promise<void> _rem...
来源: Laya3.0_api 发布时间: 20231102
...tion (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> <script type="text/...
来源: Laya_社区 发布时间: 20180509
... /** * example:videodom 使用Laya.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.H...
来源: Laya_社区 发布时间: 20240305
...ot%3B,使用ios访问下载.无法下载完成(之前写的项目会回调,data为空,这个demo不知道为啥直接不回调了) * 分为三步: * 1.开始下载,打印日志: 开始下载url:http://ktv.x5.qq.com/dynamic_n ... 2.zip * 2.下载中,等待回调:下载中....... * 3.回调完成:下...
来源: Laya_社区 发布时间: 20180319
...in laya/utils/Handler.ts:56 执行处理器。 Returns any runWith runWith(data: any): any Defined in laya/utils/Handler.ts:68 执行处理器,并携带额外数据。 Parameters data: any 附加的回调数据,可以是单数据或者Array(作为多参)。 Returns any setTo setTo(caller: any, m...
来源: Laya3.0_api 发布时间: 20231115