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

大约有 7 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0051 秒)

1. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 100%]

...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这里处...

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

2. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 98%]

...= new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(data:Object):void{ //加载完成返回的data是arraybuffer; /...

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

3. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 98%]

...te = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; ...

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

4. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 53%]

...it(500,500); var httpreq:HttpRequest = new HttpRequest(); httpreq.on(Event.COMPLETE,this,this.completeHandler); httpreq.on(Event.ERROR,this,this.errorHandler); httpreq.send("demo1.js"); } private function completeHandler(e:Object):void { var script:Object = Browser.document.createElement("script"); ...

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

5. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 51%]

...除模式) | 部分支持(包括:Always Animate 总是播放、Cull Completely完全剔除) | ##### Animator Controller State 在Aniamtor组件属性中双击Controller打开动画控制器的面板,选中`State`(状态),可以看到下图面板。 ![img](img/4.6-2.png) 在上图中的Un...

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

6. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 46%]

...init(500,500); var httpreq = new Laya.HttpRequest(); httpreq.on(Laya.Event.COMPLETE,this,completeHandler); httpreq.on(Laya.Event.ERROR,this,errorHandler); httpreq.send("demo1.js"); function completeHandler(e){ var script = Laya.Browser.document.createElement("script"); Laya.Browser.document.body.app...

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

7. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 44%]

...r httpreq:Laya.HttpRequest = new Laya.HttpRequest(); httpreq.on(Laya.Event.COMPLETE,this,this.completeHandler); httpreq.on(Laya.Event.ERROR,this,this.errorHandler); httpreq.send("demo1.js"); } private completeHandler(e:any):void{ var script:any = Laya.Browser.document.createElement("script"); Laya.B...

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