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

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

431. 微信小游戏中不能加载proto文件 [ 52%]

... (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________")  var ProtoBuf = Browser.window.protobuf;  // Laya.init(550, 400);  ProtoBuf.load("res/protobuf/Login.proto", onAssetsLoaded);  function onAssetsL...

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

432. Laya.load在OPPO小游戏端无法加载带有不安全字符的图片网址 [ 52%]

...rl = "https://lupic.cdn.bcebos.com/2 ... 3B%3B Laya.loader.load(_url, Laya.Handler.create(this, res => { let a = new Laya.Image(_url); Laya.stage.addChild(a); })) 以下是安卓层面输出日志:09-22 11:08:10.811 27895-28111/? D/jswrapper: JS: [WARN]: [warn]Retry to load: https://lupic.cdn.b...

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

433. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 51%]

...es/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);  Laya.stage.addChild(s); } 新建一个工程 這样写打...

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

434. 3D粒子特效初始化卡顿 [ 51%]

... = null; if(isGroup == true){ groupName = url; } Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName); }else{ var item:Sprite3D = Pool.getItem(_path); if(item != null){ //直接缓存的 Instantiate(item); }else{ OnComplete(); } } } public function Delay...

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

435. AS转换JS运行报错 [ 51%]

...常,但按键回调函数中调DoFunc报错 我现在得到结论 KeyHandler中的this不能指代__proto对象 要使this指代过去,我记得参数中要加个参数才对,麻烦看下是不是转换问题,还是有这种写法   附件 : --> 2017-01-23 添加评论 免费帖 --> 分...

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

436. Laya.loader.load 加载场景报错 [ 51%]

Laya.loader.load 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent ...

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

437. Uncaught unknown animationClip version. [ 51%]

...来自: Laya.Scene3D.load("LayaScene_scene1/Conventional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene);         }));   加载代码 2019-03-13 0 0 分享 微博 QZONE 微信 Zong 赞同来自: 断点调试显示clip.versio...

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

438. Laya1.6.2发布flash版本 [ 51%]

...las() at Function/http://adobe.com/AS3/2006/builtin::call() at laya.utils::Handler/runWith() at laya.events::EventDispatcher/event() at laya.resource::Resource/completeCreate() at laya.webgl.resource::WebGLCharImage/recreateResource() at laya.resource::Resource/activeResource() at laya.resource::Tex...

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

439. 通过Spine工具导出缩小了比例,游戏中显示部分节点坐标和比例出错 [ 51%]

...new Laya.Skeleton();         tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{             tmpSpine.showSkinByIndex(2);//皮肤ID:1,2             tmpSpine.play("idea",true);         }),1);         tmpSpine.x = 365;         tmpSp...

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

440. Laya.Sprite loadImage 参数问题 [ 51%]

... x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编译报错。 2020-05-22 添加评论 免费帖...

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