大约有 277 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
Laya_社区(175) Laya2.0_api(58) Laya3.0_文档(21) Laya2.0_文档(16) laya_api(3) Laya3.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...+) { 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
...平铺案例的图片,却是可以的,而就是官方demo中自带的comp.png也无法平铺,不知道对格式要求是什么样 2020-05-23 0 0 分享 微博 QZONE 微信 权吉星ADQ준호 赞同来自: 这个问题老奇葩了, 我也是 通过楼上的启发,取用了官方的图片,...
来源: Laya_社区 发布时间: 20180720
...ginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //Laya.s...
来源: Laya_社区 发布时间: 20180525
...目录,诸如这样的路径: 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
...; } } private function TestScrollImage():Image{ var img:Image = new Image("comp/image.png"); img.scrollRect = new Rectangle(0,0,100,100); return img; } private function SetPathArr(ar:Array,path:Sprite):void{ var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i...
来源: Laya_社区 发布时间: 20171129
... 0, "minEndColor": { "0": 0, "1": 1, "2": 0, "3": 1 }, "textureFileName": "comp\\clip_num.png", "emissionRate": 0, "minHorizontalVelocity": 0, "emitterType": "null", "textureCount": 1, "minVerticalVelocity": 0, "boxEmitterVelocityAddVariance": { "0": 0, "1": 0, "2": 0 }, "ringEmitterCenterPosition":...
来源: Laya_社区 发布时间: 20180109
...te btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createvbox(); // ...
来源: Laya3.0_文档 发布时间: 20251010
...te btn3: Laya.Button; // 按钮皮肤资源 private skins: string = "atlas/comp/button.png"; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skins).then(() => { this.createBtn(); this.createHbox(); // ...
来源: Laya3.0_文档 发布时间: 20251010
...请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加载线...
来源: Laya2.0_api 发布时间: 20190513