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

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

1. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 100%]

...{ import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; /** * ... * @author ww */ public class SkeletonTempletSample { public var templet:Templet; public function SkeletonTempletSample() { WebGL.enable(); Laya.init(1000, 900); //创建动画...

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

2. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 94%]

...a.WebGL); //创建动画模板 templet=new Laya.Templet(); templet.on(Laya.Event.COMPLETE,this,parseComplete); templet.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() ...

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

3. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 93%]

...创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse error"); } parseComplete() { //创建第...

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

4. WebSocket发送与接收数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 92%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

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

5. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 91%]

...。因此实例化socket之后四个事件是我们必须监听的: ``` Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必要的,这也是我...

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

6. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 91%]

...实例化socket之后四个事件是我们必须监听的: ```typescript Event.OPEN :连接正常打开抛出的事件 Event.MESSAGE :接收到消息抛出的事件 Event.CLOSE :socket关闭抛出的事件 Event.ERROR :连接出错抛出的事件 ``` 上面这四个事件是必须的,这也是...

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

7. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 82%]

... SpineTempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos...

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

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

...代码如下: ```java package { import laya.display.Sprite; import laya.events.Event; import laya.net.HttpRequest; import laya.utils.Browser; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new Htt...

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

9. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 79%]

...eTempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleto...

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

10. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 79%]

... SpineTempletBinary(); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.ske...

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