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

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

381. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 64%]

... constructor(){ super();  this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) }  createChildren(){ super.createChildren(); this.loadScene('LoginScene'); }   }     import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ export default class GameCo...

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

382. 龙骨换肤出现问题,这个问题论坛有人问过,然后说处理没有下文了?已上传demo,求解决 [ 64%]

...8-11-16 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: onGreen(){ console.log("换成绿锤子") this.greenPitchUp.visible=true; this.bluePitchUp.visible=false; let player=Player.instance; // player.anSk.showSlotSkinByIndex("HarmGreen",1); player.anSk.replaceSlotSkinByIndex("HarmGreen",1,0)...

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

383. Laya2.2.0,官方demo,Iphone Xs Max 14.0 锁屏小游戏卡死 [ 64%]

...> { this.event(AppEvent.onShow, res); this.appStatus = AppEvent.onShow; console.log(this.appStatus, '---------'); Laya.stage.renderingEnabled = true//恢复渲染 Laya.updateTimer.resume() //恢复onUpdate Laya.timer.resume(); //恢复时间 Laya.timer.scale = 1; }) window['wx'].onHide(() => {...

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

384. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...

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

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

...博 QZONE 微信 匿名用户 赞同来自: 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,...

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

386. 【求助】关于Cannot read property 'visible' of undefined问题 [ 64%]

...(foodsList); addFoodListener(); } private function addFoodListener():void{ console.log(foodsList[this.index]); this.currentFood = this.foodsList[this.index]; console.log(currentFood); this.currentFood.on(Event.MOUSE_DOWN, this, onMouseDown); this.currentFood.on(Event.MOUSE_UP, this, onMouseUp); }cur...

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

387. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...port class NewScript extends Main { private ui: RuntimeScript; onStart() { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass...

来源: Laya3.0_文档 发布时间: 20250217

388. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 64%]

...; .............................................. if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else i...

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

389. 内存释放问题 [ 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

390. Shader预编译解决方案 [ 63%]

...    }             else {                 console.warn("Shader3D: unknown passIndex.");             }         }         else {                          console.warn("Shader3D: unknown subShaderIndex.");     ...

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