大约有 654 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
Laya_社区(598) Laya2.0_文档(19) Laya3.0_文档(12) Laya2.0_示例(8) Laya_示例(8) Laya3.0_api(5) laya_api(2) Laya2.0_api(2)
...sprite3D对象 附件上传了我的工程文件。 如果是使用Laya.loader.create("model/build/warehouse1/warehouse1.lh", Laya.Handler.create(this, onComplete)); function onComplete() { //仓库原型 warehouse1 = Laya.Sprite3D.load("model/build/warehouse1/warehouse1.lh"); scene.addChild(ware...
来源: Laya_社区 发布时间: 20180104
2d粒子旋转时大小也会随着改变 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitt...
来源: Laya_社区 发布时间: 20180505
ui中的image,如何预加载? 我使用Laya.loader.load预加载ui中的图片,然后创建该ui,提示重复加载 2018-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同...
来源: Laya_社区 发布时间: 20180515
...ser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.graphics.drawTriangles( tex, 100, 0, new Float32Array([0,0,1,0,1,1,0,1]), ne...
来源: Laya_社区 发布时间: 20190829
...tlas是放在cdn的,游戏开始的时候会去拉,就是调用的Laya.loader.load去load的,这样load下来的会自动缓存在本地吗? Laya_Aaron • 2018-07-19 20:51 @小伦:拉下来会存 小伦 • 2018-07-19 23:45 那理论上clearRes的时候不会报我上面那个错把 是我...
来源: Laya_社区 发布时间: 20180719
...; } private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = n...
来源: Laya_社区 发布时间: 20180525
...2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2019-01-02 15:17 浏览: 438 关注: 1 人
来源: Laya_社区 发布时间: 20190102
...行是没有问题的,但是发布打包之后存在资源加载不了 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 更改资源路径的URL 问题状态 最新活动: 2018-08-30 14:01 浏览: 1586 关注: 1 人
来源: Laya_社区 发布时间: 20180817
急急 在线等 加载xml 后直播无法自动播放 附示例项目 LoaderPolicy.setup(URLResolver.solvePath("files.fst?"), Handler.create(this, function xload() : void { //无法播放 Laya.loader.load(URLResolver.solvePath("config.xml"), Handler.create(this, onConfigLoaded), null, Loader.XML);...
来源: Laya_社区 发布时间: 20171115
加载配置json文件不成功!json文件放在bin目录下的 Laya.loader.load(["res/atlas/comp.atlas","res/atlas/popup.atlas","res/atlas/cartoon.atlas","res/atlas/miner.atlas","gameConf.json"],Laya.Handler.create(this,onloaded),null,null); 2018-07-23 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20180723