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

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

11. laya接入fairyGUI的时候资源加载方式? [ 89%]

...sKey.split("/"); let pkg: any = fgui.UIPackage.getByName(urlNames[urlNames.length - 1]); if (!pkg) { let descData: any = Laya.loader.getRes(resKey + "." + fgui.UIConfig.packageFileExtension); if (!descData) { this.onComplete(resKey, otherLoadData, complete, progress, loadData); return; } pkg = fgui....

来源: Laya_社区 发布时间: 20191107

12. 性能测试-骨骼 [ 88%]

...0; i = tAnimNum) { mActionIndex = 0; } for (var i = 0, n = mAnimationArray.length; i = []; private mFactory: Templet; constructor() { this.mSpacingX = Browser.width / this.colCount; this.mSpacingY = Browser.height / this.rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); this.mT...

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

13. 性能测试-骨骼 [ 88%]

...0; i = tAnimNum) { mActionIndex = 0; } for (let i = 0, n = mAnimationArray.length; i = []; private mFactory: Templet; constructor() { this.mSpacingX = Browser.width / this.colCount; this.mSpacingY = Browser.height / this.rowCount; Laya.init(Browser.width, Browser.height, WebGL); Stat.show(); this.mT...

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

14. UI-Input [ 87%]

...s, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Lay...

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

15. Laya.Handler.create 回调 [ 86%]

...1, [anim])); onStartOver1(bads: Array<any>): void { alert("1" + bads.length) var animsf :Laya.Animation = bads[0] as Laya.Animation; animsf.play(); } 这样用会报错 2017-03-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

来源: Laya_社区 发布时间: 20170309

16. 动画-新版骨骼动画 [ 86%]

...名称播放动画 zombieAnimator.play(clipName[++curStateIndex % clipName.length]); }); })); }class SkinAnimation_New { private changeActionButton: Laya.Button; private zombieAnimator: Laya.Animator; private curStateIndex: number = 0; private clipName: Array = ["walk", "attack", "left_fall", "right...

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

17. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 86%]

...private createChars(v: string): void { if (!v) { return; } let charNum = v.length; for (let i = 0; i < charNum; i++) { let char = v.charAt(i); let resName = this.getResName(char); let sp: Laya.Sprite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips....

来源: Laya_社区 发布时间: 20180302

18. 网络和格式-ProtocolBuffer [ 86%]

...code(buffer); // ... do something with message // If your application uses length-delimited buffers, there is also encodeDelimited and decodeDelimited. } })();module laya { import Loader = Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer ...

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

19. 网络和格式-ProtocolBuffer [ 86%]

...code(buffer); // ... do something with message // If your application uses length-delimited buffers, there is also encodeDelimited and decodeDelimited. } })();module laya { import Loader = Laya.Loader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer ...

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

20. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 85%]

...ou are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use the next two (or eight) bytes to store the length instea...

来源: Laya_社区 发布时间: 20180612