大约有 141 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0034 秒)
Laya_社区(85) Laya2.0_文档(17) Laya_示例(14) Laya3.0_文档(12) Laya2.0_示例(7) Laya3.0_api(4) laya_api(1) Laya2.0_api(1)
...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
...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
...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
...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
...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
...名称播放动画 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
...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
...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
...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
...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