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

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

1. 骨骼动画-多纹理 [ 100%]

...let(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArm...

来源: Laya_示例 发布时间: 20251130

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

...let(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX...

来源: Laya_示例 发布时间: 20251130

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

...let(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX...

来源: Laya_示例 发布时间: 20251130

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

...let(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArm...

来源: Laya_示例 发布时间: 20251130

5. 骨骼动画-Spine事件 [ 97%]

...let(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { trace("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArm...

来源: Laya_示例 发布时间: 20251130

6. 网络和格式-Socket [ 90%]

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

来源: Laya_示例 发布时间: 20251130

7. 加载-错误处理和进度 [ 87%]

...ng, null, false), Loader.TEXT); // 侦听加载失败 Laya.loader.on(Event.ERROR, this, onError); })(); function onAssetLoaded(texture) { // 使用texture console.log("加载结束"); } // 加载进度侦听器 function onLoading(progress) { console.log("加载进度: " + progress); } function onErr...

来源: Laya_示例 发布时间: 20251130