大约有 417 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0039 秒)
Laya_社区(291) Laya2.0_api(75) Laya3.0_文档(23) Laya2.0_文档(19) laya_api(3) Laya3.0_api(2) Laya2.0_示例(2) Laya_示例(2)
...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
...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
...+) { 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
....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
....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
...平铺案例的图片,却是可以的,而就是官方demo中自带的comp.png也无法平铺,不知道对格式要求是什么样 2020-05-23 0 0 分享 微博 QZONE 微信 权吉星ADQ준호 赞同来自: 这个问题老奇葩了, 我也是 通过楼上的启发,取用了官方的图片,...
来源: Laya_社区 发布时间: 20180720
...议放到一个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
...目录,诸如这样的路径: Assets/Game/Scene/001/001_01/Lightmap-7_comp_light.png是不是都必须放到bin的跟目录之下? 2018-01-30 0 3 分享 微博 QZONE 微信 watsonsong 赞同来自: ResourceVersion.addVersionPrefix这个函数本来有两个参数,第二个参数basePath直...
来源: Laya_社区 发布时间: 20180130
... { 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
...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