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

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

1311. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 50%]

...=> {             Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => {                 let Particle2D = Laya.Particle2D;                 // 创建 Particle2D 实例                 let partIns = new Particle2...

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

1312. 启用版本管理后,加载的资源很奇怪的在正确的路径后面又加了一次路径 [ 50%]

..., "protos/samplegame.proto", ];   Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT);     打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样的错 GET http://xxxxxxxx.com/newg...

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

1313. Unity插件导出模型 [ 50%]

...下   Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); }));   报错信息 Uncaught TypeError: Cannot read property 'transform' of un...

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

1314. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 49%]

...后再进行。如下句 : Laya.loader.create( MyResouces.arrResources, Handler.create(this,onLoadComplete) ); 意为加载完MyResouces.arrResources这些资源后调用方法onLoadComplete,添加碰撞盒子需要在onLoadComplete里或者onLoadComplete运行过之后再加。

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

1315. 求救 Laya2.0下的Particle2D问题 [ 49%]

...焰特效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotation; //问题在下面://如果首次传入E/Q,尾...

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

1316. 如何通过代码控制prefab上面的时间轴动画animation? [ 49%]

...n(Laya.Event.COMPLETE, this, this.onPlayComplete); } attack(callback?:Laya.Handler){ this.ani_show.play(); if (callback) // 甚至可以加上回调 this.ani_show.once(Laya.Event.COMPLETE, this, ()=>{ callback.run(); }); } ... // 外部访问 ... let puzzleSoldier = soldier.getComponent(PuzzleSol...

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

1317. 关于图集和配置文件(json || atlas)的问题 [ 49%]

..._base.png",type:Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray,Laya.Handler.create(this,initUI)); 单图就是so_main_base.png,死活就加载不出来, 报错 [warn]Retry to load: UI/so_main_base.png [error]Failed to load: UI/so_main_base.png 一开始我怀疑尺寸太大,就换了一...

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

1318. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 49%]

...           {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }         }         private function onAssetLoaded(texture:Texture):void         {             var ape:Sprite = new Sprite;          ...

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

1319. timer无法执行 [ 49%]

... Laya.BlinnPhongMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addCo...

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

1320. Panel使用文档(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded)); } private onLoaded(): void { //实例化Panel组件 var panel: Laya.Panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设...

来源: Laya2.0_文档 发布时间: 20210715