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

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

951. 用Unity插件导出的模型渲染报错 [ 51%]

...019-05-16 15:16 Laya.loader.create("model/role/1/model.lh", Laya.Handler.create(this, this.OnComplete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite); } 155*****924 • 2019-05-16 15:16 这样写...

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

952. scaleMode设为full时怎么pc浏览器跟平板上效果不一样? [ 51%]

... Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load("assets/bg.jpg", Handler.create(this, loadCompleteHandler)); } private function loadCompleteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以完整显示出来,为什么...

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

953. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selec...

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

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

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

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

955. 求救 Laya2.0下的Particle2D问题 [ 51%]

...焰特效后就置为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

956. Unity插件导出模型 [ 51%]

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

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

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

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

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

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

959. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 51%]

...; item.progress = 0; totalSize += item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, p...

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

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

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