大约有 2,661 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0072 秒)
Laya_社区(2342) Laya2.0_文档(106) Laya3.0_文档(59) Laya_示例(52) Laya3.0_api(51) Laya2.0_示例(43) laya_api(4) Laya2.0_api(4)
...。 轻狂书生杀 • 2018-06-01 10:46 <script src='libs/matter.js' loader='laya'></script> <script src='libs/LayaRender.js' loader='laya'></script> 我这样子不行,报了错Uncaught TypeError: Cannot read property 'Engine' of undefined
来源: Laya_社区 发布时间: 20170511
...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Stat; import laya.webgl.WebGL; public class HtmlDemo { private static var sp:Sprite; public function HtmlDemo() { Laya.init(800, 480,WebGL); Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg...
来源: Laya_社区 发布时间: 20160905
...2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug Laya2.0.1动态批处理的bug? EffectAnimation Bug 问题状态 最新活动: 2020-11-02 15:34 浏览: 4091 关注:...
来源: Laya_社区 发布时间: 20200619
... 2022-10-10 17:25 官方大大你好,我先说明一下流程: 通过 Laya.loader.create(url, complete); 加载 3D 特效文件 并且缓存 源对象 , 当前或下次 直接从源对象 克隆一个 3D特效 出来 进行 添加到场景里 当怪物全部死亡时 会进行特效文件的回收 ...
来源: Laya_社区 发布时间: 20221010
...这个文件放到atlas下,把url改成 hero.graphics.drawTexture(Laya.loader.getRes("res/atlas/role/hero_03.png")); 2017-11-20 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 刚刚你这一行报错,我就把你这一行代码改了,我不清楚,这是不是你想要的效果 20...
来源: Laya_社区 发布时间: 20171120
...的方式 Laya.URL.rootPath = Laya.URL.basePath = ""; //加载图集 Laya.loader.load([ {url:"res/atlas/comp.atlas", type: Laya.Loader.ATLAS}, ], new Laya.Handler(this, this.onLoad)); 版本是1.7.19 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20180921
...源怎样加载 this.resUrlArr.push({url:"res/music/1_Pass0.ogg",type:Laya.Loader.SOUND}); this.resUrlArr.push({url:"res/music/1_Pass1.ogg",type:Laya.Loader.SOUND});现在这样写现在pc端没有问题,网页的话加载不了 2017-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20170411
...WALL; Laya.stage.bgColor = "#232628"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos...
来源: Laya_示例 发布时间: 20251219
...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...
来源: Laya2.0_文档 发布时间: 20210714
...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...
来源: Laya_社区 发布时间: 20190927