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

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

1. 骨骼动画-适配版Spine [ 100%]

...emplet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError); } parseComplete() { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); ...

来源: Laya2.0_示例 发布时间: 20240930

2. 骨骼动画-多纹理 [ 99%]

...; mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存) mArmature = mFactory.buil...

来源: Laya2.0_示例 发布时间: 20240930

3. 骨骼动画-藤蔓 [ 99%]

...; mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存)...

来源: Laya2.0_示例 发布时间: 20240930

4. 骨骼动画-橡胶人 [ 99%]

...; mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存)...

来源: Laya2.0_示例 发布时间: 20240930

5. 骨骼动画-换装 [ 98%]

...; mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存)...

来源: Laya2.0_示例 发布时间: 20240930

6. 加载-错误处理和进度 [ 96%]

...irIDE让项目开发更高效。let numLoaded = 0; class Loader_ProgressAndErrorHandle { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas...

来源: Laya2.0_示例 发布时间: 20240930

7. 骨骼动画-Spine事件 [ 95%]

...; mFactory.on(Event.COMPLETE, this, this.parseComplete); mFactory.on(Event.ERROR, this, this.onError); mFactory.loadAni(mAniPath); } onError() { trace("error"); } parseComplete() { const Event = Laya.Event; // 创建模式为1,使用动画自己的缓冲区,可以启用换装(相当耗费内存)...

来源: Laya2.0_示例 发布时间: 20240930

8. 网络和格式-POST [ 93%]

...; hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData', 'name=myname&psword=xxx', 'post', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSize...

来源: Laya2.0_示例 发布时间: 20240930

9. 网络和格式-GET [ 93%]

...; hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/getData?name=myname&psword=xxx', null, 'get', 'text'); } showLogger() { const Text = Laya.Text; logger = new Text(); logger.fontSi...

来源: Laya2.0_示例 发布时间: 20240930

10. 网络和格式-Socket [ 84%]

...); socket.on(Event.MESSAGE, this, this.onMessageReveived); socket.on(Event.ERROR, this, this.onConnectError); } onSocketOpen() { console.log("Connected"); // 发送字符串 socket.send("demonstrate "); // 使用output.writeByte发送 let message = "demonstrate "; for (let i = 0; i "); // 使用outp...

来源: Laya2.0_示例 发布时间: 20240930