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

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

191. 2.0按钮添加事件报错 cannot read property 'on' fof undefined [ 49%]

...ot read property 'on' fof undefined class GameLogin extends ui.login.login_bgUI { constructor() { super(); this.btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } }   //调用on的时候 直接会报Cannot read property 'on' of ...

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

192. 为什么会出现报错 ani not found:ufo1_down [ 49%]

...设置舞台大小 Laya.init(400,852); // 创建循环滚动的悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(...

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

193. 关于canvas下资源释放的问题 [ 48%]

...ader.clearTextureRes("res/atlas/comp.atlas"); Loader.clearTextureRes("hall/bg.jpg");              */         public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你是针对Texture清理的吗? 2018-04-25 0 3 ...

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

194. ui资源存的位置 [ 48%]

...我看过了,因为ide编辑的UI直接用"skin":"ui/ui_bg_top.png",这样做了预加载有意义吗?

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

195. laya2.5 IOS微信小游戏后台切回背景音乐没播放,长时间切回来卡很久 [ 48%]

...sole.log("__onShow___"); Laya.SoundManager.playMusic("sound/bg.mp3",0); });

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

196. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 48%]

...放一张底图,上面叠一张特效帧 package {     import laya.webgl.WebGL;     import laya.utils.Handler;     import laya.display.Sprite;     import laya.ui.Image;     public class LayaSample {                  public function LayaSample() {        ...

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

197. 更新到1.7.6beta之后,HBox有bug [ 48%]

...= 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; case 4: skin = "comp/checkbox.png"; break; case 5: skin = "comp/clip_selectBox.png";...

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

198. 不打包文件夹发布问题 [ 47%]

...种png图片 185*****853 • 2018-06-14 10:52 一个文件夹名字panel_bg里面都是面板背景,给这个文件夹设置不打包,就发布不出来

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

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

...hildren():void { super.createChildren(); var index:Number = getChildIndex(_bg); addChildAt(_progress = new Image(),index + 1); } override protected function changeValue():void{ super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: " + _proMask.scaleX); } /...

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

200. 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 [ 46%]

...s/atlas/common.atlas", type: Laya.Loader.ATLAS}, {url: "hall/1_login/login_bg.png", type: Laya.Loader.IMAGE}, {url: "hall/1_login/Bottom_article.png", type: Laya.Loader.IMAGE}, {url: "res/atlas/hall/login.atlas", type: Laya.Loader.ATLAS}, ] Laya.loader.load(resArray, Handler.create(null, function(){...

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