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

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

151. 【紧急】laya2.0loadImage方法为什么不触发complete? [ 59%]

...Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?谁给解释一下啊 2018-10-10 添加评论 免费帖 --> 分享 微...

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

152. Laya3D场景加载问题 [ 58%]

...    onAwake(): void {         Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));     }     onPreLoadFinish() {         //初始化3D场景         let test = Laya.Loader.getRes("gate/Conventional/Test.ls")         let scene = Laya.stage.addChild...

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

153. 加载成功要怎样判断呢? [ 58%]

...成不缓存,强制再加载也不行也不行→Laya.loader.load(path, Handler.create(this, onLoaded), null, Loader.XML, 1, false, null, true);  cache和ignoreCache这两个参数有什么作用?要怎样设置能重新加载? 版本1.6.2 2017-03-25 0 0 分享 微博 QZONE 微信 cuixueying ...

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

154. List选中项下滚会变 [ 58%]

...this.sList.selectEnable = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerListVi...

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

155. 多摄像机窗口使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 58%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp){ //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

156. 多摄像机窗口使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 58%]

...ya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall...

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

157. 请教:粒子官方教程中配置文件是从哪里得到了? [ 58%]

...码时,有一句是 Laya.loader.load("res/particles/particleNew.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);   其中这个 res/particles/particleNew.part文件是怎么获得?谢谢   如下图 附件 : --> 2018-03-17 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

158. laya.ui.Button_API3.0 [ 58%]

...一个 Button 实例。 package { import laya.ui.Button; import laya.utils.Handler; public class Button_Example { public function Button_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布背景颜色。 Laya.loader.load("resource/ui/button....

来源: Laya3.0_api 发布时间: 20231115

159. 生成粒子特效怎么设置colorComponentInter无效? [ 57%]

...adImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settings); sp.emitter.start(); sp.play(); sp.x = 90; sp.y = 55; this.add...

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

160. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 57%]

... 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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