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

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

291. 内存释放问题 [ 47%]

...ew Laya.Dictionary(); constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", ty...

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

292. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 47%]

...lse return false; } function LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) }...

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

293. 给图片节点添加新创建的图片,会报这个错:node._setParent is not a function [ 47%]

...+) { let iNum = Math.round(Math.random() * this.intMaxLove); let imgSrc = "comp/heart"+iNum+".png"; let imgLove = new Image(imgSrc); console.log("imgLove ==="+imgLove); console.log("imgSrc === "+ imgSrc); //imgLove.pos(iRows*this._x + 120 , iColumns*this._y + 320); this.imageBg.addChild(imgLove); } ...

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

294. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 47%]

....init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonClickDemo.rar 2017-05-13 添加评论 免费帖 --> 分...

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

295. 这样的panel请问如何实现比较好? [ 47%]

....stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 微博...

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

296. 设置tiling/Offset,图片循环模式/wrapMode repeat不生效 (问题未解决,麻烦回复,如已解决会改标题) [ 46%]

...平铺案例的图片,却是可以的,而就是官方demo中自带的comp.png也无法平铺,不知道对格式要求是什么样 2020-05-23 0 0 分享 微博 QZONE 微信 权吉星ADQ준호 赞同来自: 这个问题老奇葩了, 我也是 通过楼上的启发,取用了官方的图片,...

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

297. 游戏资源加载问题! [ 46%]

...议放到一个load里边进行加载: Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS},{url:"res/atlas/Skill/Skill_1001.json",type:Laya.Loader.ATLAS}], Handler.create(this, onAssetLoaded), null, Loader.ATLAS);   2017-12-27 0 0 分享 微博 QZONE 微信 q1402907210 - 你猜...

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

298. Scene.load加载的时候无法正确的识别ResourceVersion [ 46%]

...目录,诸如这样的路径: Assets/Game/Scene/001/001_01/Lightmap-7_comp_light.png是不是都必须放到bin的跟目录之下? 2018-01-30 0 3 分享 微博 QZONE 微信 watsonsong 赞同来自: ResourceVersion.addVersionPrefix这个函数本来有两个参数,第二个参数basePath直...

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

299. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

... { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如图1-2所示: (图1-2) 1.2 3D节点的基础使用 首先,如动图1-3所示,将场景中已经添加好的3D节点Cube拖入到@property暴露的属性入口中,这...

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

300. Laya.loader.create中的progress回调好像不准确? [ 46%]

...ayaScene_yueren/yueren.ls", Laya.Handler.create(this, function () { //complete func console.log("Scene loaded"); isLoaded = true; }), Laya.Handler.create(this, function (pro) { if (debug) console.log("Loading progresss : " + pro); }, null, false), Laya.Scene); Monica • 201...

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