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

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

201. 给图片节点添加新创建的图片,会报这个错: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

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

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

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

203. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 46%]

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

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

205. 组件属性的代码使用 · 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

206. 路径显示会添加DrawCall,每增加一条路径都会添加,有什么办法降DrawCall [ 46%]

...; } } 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

207. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 45%]

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

208. 垂直布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

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

209. 水平布局容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

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

210. laya.net.LoaderManager [ 40%]

...请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加载线...

来源: Laya2.0_api 发布时间: 20190513