大约有 260 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Laya_社区(237) Laya2.0_文档(13) Laya3.0_文档(4) Laya2.0_api(3) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1)
...法里如何带参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){ sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170608
...lone() as s3d;//s3d.instantiate(x.s3ds[id]); } static loads3d(id, path, handler=null):void{ s3d.load(path, Laya.Handler.create(null, function(sp){ x.s3ds[id] = sp; if(handler)handler.loadeds3d(id, sp); })); } 我首先用loads3d方法加载所有的.lh文件,然后用Sprite3D.instantiate...
来源: Laya_社区 发布时间: 20191004
...加载旧的资源 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 微信小游戏资源加载问题 麻烦帮忙看下为什么显存资源未卸载干净? ui打包资源同步bin目录下, 为什么更新IDE后在前面加了H5的目录 问题...
来源: Laya_社区 发布时间: 20180727
...oader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui/share@atlas0.png"))//此处会报循环引...
来源: Laya_社区 发布时间: 20180609
...本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20170316
...始时间无效 SoundManager.playMusic("res/music/shanghaitan.mp3", 1, new Handler(this, this.onMusicComplete),20); 播放音乐指定从20s开始,在android机器上运行正常在IOS上运行每次都是从开始播放 附件 : --> testMusic.zip 2019-06-05 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190605
...name; */ var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var Handler = Laya.Handler; var Sprite = Laya.Sprite; var MapLayer = Laya.MapLayer; var loadMap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototy...
来源: Laya_社区 发布时间: 20170605
...os原生回调问题 LayaAir 3D 有提供 3D 物理引擎功能吗? Laya.Handler.create和new Laya.Handler有啥区别 最新版LayaAir IDE 2.2.0beta4的几个问题 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 2.10.0版本中代码编译器模式下为什么会自动打开Visu...
来源: Laya_社区 发布时间: 20170115
...击的某个物体 Laya.loader.create 进度回调函数执行两次 Laya.Handler.create 加载图片回调参数问题 问题状态 最新活动: 2017-10-24 16:10 浏览: 779 关注: 2 人
来源: Laya_社区 发布时间: 20171024
...vas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; L...
来源: Laya_社区 发布时间: 20170704