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

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

201. 游戏资源加载问题! [ 67%]

...这行代码: Laya.loader.load("res/atlas/Skill/Skill_1001.json",Handler.create(this,onAssetLoaded),null,Laya.Loader.ATLAS); 你没有给资源加载完成的回调,资源的后缀也错了,应该是Loader.ATLAS,你少了一个Loader   多个图集的话建议放到一个load里边进行加...

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

202. js进度,进度,js场景进度效果 [ 67%]

...息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAssetLoaded), Laya.Handler.create(this, this.onLoading, null, false), Laya.Loader.ATLAS); }; //加载完成后 p.onAssetLoaded = function() {}; //加载进度 p.onLoading = function(num) { //先添加进度...

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

203. Texture自动恢复还是存在另外的问题 [ 67%]

...stroyed)&& url){             Laya.loader.load(url,Handler.create(this,function(bitmap){                 _$this._bitmap=bitmap;             }),null,"htmlimage",1,false,null,true);         }     }   Laya.loader.load的cache参数为什么设置为false...

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

204. Panel初始化BUG [ 67%]

...;         content._style.scrollRect || (content.scrollRect = Rectangle.create());         content._style.scrollRect.setTo(rectX, rectY, width, height);         content.scrollRect = content.scrollRect;     } 附件 : --> Bug文本.zip 2021-11-08 添加评论 免费帖 --> 分享 微博 ...

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

205. 加载UI为什么总是加载白底 [ 66%]

...fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"s...

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

206. 为什么自定义shader大图正常,小图就被缩小了 [ 66%]

...(texture,width_Size,height_Size,vb,ib){ this.vBuffer = Laya.VertexBuffer2D.create(); this.iBuffer = Laya.IndexBuffer2D.create(); this.ibData = new Uint16Array(); if(vb) { vbArray = vb; } else{ vbArray = []; var texWidth = texture.width; var texHeight = texture.height; // console.log("liuyi&quot...

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

207. 其他引擎的Demo-Example_23 [ 66%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); // create a background texture Laya.stage.loadImage("res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } animate() { const Sprite = Laya.Sprite, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0;...

来源: Laya2.0_示例 发布时间: 20251209

208. 龙骨动画残影 [ 66%]

...骨的官方DEMO转的。部分代码片段如下:  private _onAnimationCreated(ani)     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, ...

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

209. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 66%]

...ox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/LayaScen...

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

210. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 66%]

...imer 中,有个两帧之间的时间间隔,单位毫秒number,似乎是Create传进去的? ------------------------------------------- declare module laya.utils { /** * <code>Timer</code> 是时钟管理类。它是一个单例,可以通过 Laya.timer 访问。 */ class Timer { pri...

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