大约有 1,751 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1103) Laya2.0_文档(182) Laya3.0_api(114) Laya2.0_api(105) Laya2.0_示例(83) Laya_示例(70) laya_api(64) Laya3.0_文档(30)
...是不是哪里没用对?并不能替换是为什么?? 源代码中Handler中的setTo()方法 对象池的使用方法是不是先new一个类然后在存到对象池 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 在js代码中,let 是...
来源: Laya_社区 发布时间: 20180509
...c function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.drawTexture(texture); ...
来源: Laya_社区 发布时间: 20170505
...回复 纪龙 赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{ console.log("load light.mp3"); Laya.SoundManager.playMusic("res/sounds/light.mp3"); Laya.SoundManager.playSo...
来源: Laya_社区 发布时间: 20180814
...aya.Scene}, {url:"LayaScene_People/People.lh","type":Laya.Sprite3D}], Laya.Handler.create(this,this.on3DComplete)); 报错提示 message:“LoaderManager : unknown file(LayaScene_Demo/Demo.ls) extension with : ls.” 2018-12-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20181228
粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan); 编辑器里面设置是对的 但是在网页上运行,图片...
来源: Laya_社区 发布时间: 20181220
...型是否是鼠标事件。 EventDispatcher load(url:String, complete:Handler):void[static] 加载网格模板。 Sprite3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String =...
来源: Laya2.0_api 发布时间: 20190513
...g", _super); var _proto_ = CommonDlg.prototype; _proto_.closeEffect = Laya.Handler.create(null, this.onCloseEffect, null, true); _proto_.onCloseEffect = function () { console.log("in on close effect") this.close(); } return CommonDlg; })(Laya.Dialog);console.log并未输出任何东西 2017-11-07 ...
来源: Laya_社区 发布时间: 20171107
...数 分享:LayaAir下如何获取图集下的小图资源? tree mouseHandler 怎么获取条目 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 问题状态 最新活动: 2018-01-31 18:08 浏览: 1265 关注: 2 人 ITMaster • 2018-02-01 12:23 不行啊, 拿不到数...
来源: Laya_社区 发布时间: 20180131
...: 与内容相关的链接 提交 1 个回复 andyskaura 赞同来自: 在Handler内调用其它js的function或者赋值 2018-03-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zxcmht310 相关问题 unity导出粒子文件问题 图...
来源: Laya_社区 发布时间: 20180321
...报警告,获取不到图片宽高 [Violation] 'requestAnimationFrame' handler took 68ms 运行游戏的时候报警告,定位问题是在底层的 渲染管理类,每次报警告 获取图片宽高都会失败,上图 附件 : --> 2018-03-27 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20180327