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

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

361. 关于zOrder层级问题 [ 64%]

关于zOrder层级问题  console.log(arr1.zOrder); //打印结果:3         console.log(this.target.zOrder); //打印结果:10   最后运行时舞台上显示的是arr1(sprite)在target(sprite)之上。 但是在编缉器上显示是正常的。 arr1对象是运行时动态添...

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

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

...eNames[i]; 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); // 为什么这...

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

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

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

364. UI-ProgressBar [ 63%]

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

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

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

...10; i++) 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

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

... this.animator = 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_社区 发布时间: 20191026

367. 解决游戏最小化退到后台后浏览器会强制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']);       ...

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

368. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 63%]

...on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()) { this.index = 0 } this.skeleton.play(this.index, false, true) } } new SpineBinary; ``` 具体效...

来源: Laya2.0_文档 发布时间: 20210715

369. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 63%]

...ld(button); dialog.dragArea = "0,0," + DIALOG_WIDTH + "," + DIALOG_HEIGHT; console.log("SHOW"); dialog.show(); Laya.timer.once(3000, this, function () { console.log("SHOW"); dialog.show(); }); } })();http://layaair.ldc.layabox.com/demo/?UI_Dialog 直接到示例下跑一跑就知道了... @cuixueyin...

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

370. laya微信小游戏加载外部素材失败 急急急 [ 63%]

...emo 代码非常少 可以重现我说的问题    function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.stage.screenMode = Laya....

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