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

大约有 1,766 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0102 秒)

411. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 64%]

... super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /** *@inheritDoc */ override public function destroy(destroyChild:Boolean = true):void { super.destroy(destroyChild); _proMask && _proMask.destroy(_proMask); _progress &...

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

412. 在UI类里调用启动类的静态函数失败了 [ 64%]

...se.backIn, Laya.Handler.create(this, this.startGame)); } birdFly(): void { console.log("我飞!"); } startGame(): void { console.log("开始游戏!"); GameMain.aaa(); } } } 2018-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

413. 事件绑定不触发bug [ 64%]

...                 function callback(event) {             console.log(" callback test");         }                  function laya_test()         {             // 不支持WebGL时自动切换至Canvas             Laya.init(Browser.clientWidth, Br...

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

414. layaBOX实时语音聊天与微信登陆接口分享 [ 64%]

...,客户端的SDK会用到这些TOKEN YIM.AddUserAuth(obj,function(res){ console.log(res); }) router.get('/', function (req, res, next) { //微信签名验证 YIM.WXCheckSignature(req,token,function(err,rows){ if(err){ res.send("error"); }else{ res.send(rows); } }) }); router.get('/token', function...

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

415. 新手入坑请教下各位大神关于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

416. 龙骨换肤出现问题,这个问题论坛有人问过,然后说处理没有下文了?已上传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

417. putimagedata 不起作用 [ 64%]

...stage.bgColor = "#232628"; showApe(); })(); function distort (imageData) { console.log(imageData) var data = imageData.data, copy = Array.prototype.slice.apply(data, [0]), w = imageData.width, h = imageData.height, i = 0, l = data.length, x, y, d for (i; i < l; i += 4) { if (data[i]!== 0) { conso...

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

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

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

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

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

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

...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_文档 发布时间: 20251010