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

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

471. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 64%]

...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

472. 内存释放问题 [ 64%]

...]; 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

473. UI-ComboBox [ 63%]

...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

474. 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 [ 63%]

...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

475. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 63%]

...  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

476. UI-ProgressBar [ 63%]

...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

477. 定时器 · LayaAir3.0文档 · LAYABOX [ 63%]

... 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

478. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 63%]

...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

479. 动画混合问题,Avatar动画混合报错. [ 63%]

...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

480. UI-ComboBox [ 63%]

...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