大约有 1,300 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1114) Laya2.0_文档(69) Laya3.0_文档(47) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...ONE 微信 匿名用户 赞同来自: function begingame(){ console.log("开始游戏"); var Tween = Laya.Tween; gamebox.x = Laya.Browser.width; gamebox.visible = true; Laya.stage.addChild(gamebox); // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,)...
来源: Laya_社区 发布时间: 20170104
...]; let curMem: number = Laya.Stat.currentMemorySize// >> 20; console.log("curM:", curMem); path = bigao.Utils.StringTool.formatString(ResUIModuleManager.moduleResPath, muduleName); bigao.control.SkillControl.instance._skillView = null; Laya.loader.clearRes(path, true); // 为什么这里clean...
来源: Laya_社区 发布时间: 20170905
...age.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })();module laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { private skin: stri...
来源: Laya_示例 发布时间: 20241001
...e,false", "443,485,backward,true"]; let state: Laya.AnimatorState; console.log("getANi"); for (let i = 0; i < arr.length; i++) { let arrString = arr[i].split(","); // 创建动画动作状态 state = new Laya.AnimatorState(); //设置动作状态的名称 state.name = arrString[2]; // 开始时...
来源: Laya_社区 发布时间: 20190802
... if (!ILaya.stage.isVisibility) { // console.log("_enterFrame...ILaya.stage._loop.........2222............enterTime=", ILaya.Browser.now()); ILaya.stage._loop(); ILaya.m_worker.postMessage(['wait']); } el...
来源: Laya_社区 发布时间: 20201201
...value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ProgressBar { ...
来源: Laya_示例 发布时间: 20241001
... Laya.timer.callLater(this, this.hideImage); } hideImage(): void { console.log("hideImage"); this.Image.visible = false; } } 5. 清理定时器 Laya.timer.clear:清理指定的定时器。定义如下: /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函...
来源: Laya3.0_文档 发布时间: 20230724
...mation/ddz_figures_landlord.sk"); } private onError(): void { console.log("error"); } private parseComplete(): void { console.error("地主加载完成"); this.isFinish = true; } public getArmature():Laya.Skeleton{ if(!this.isFinish){ return null; } let armature = null; if(this.mArmatureUnU...
来源: Laya_社区 发布时间: 20190821
...imator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); } public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(dir,norDir); console.log(norDir); //this.sprite.transform.translate(norDir,false); // let position = Laya....
来源: Laya_社区 发布时间: 20191026
...his, this.onSelect, [comboBox]); return comboBox; } onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } } new UI_ComboBox();module laya { import Stage = Laya.Stage; import ComboBox = Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_ComboBox { pri...
来源: Laya2.0_示例 发布时间: 20241001