大约有 803 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
...ap.getLayerByIndex(2); mallLayer = tiledMap.getLayerByName("animation"); //Create Bear Start for(var sCnt = 0; sCnt < 20; sCnt++){ createSprite(sCnt) } //Create Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mou...
来源: Laya_社区 发布时间: 20170110
...集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 MiniAdpter.sendJsonDataToDataContext("json/rew...
来源: Laya2.0_文档 发布时间: 20210715
...纪龙 赞同来自: 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.playSound("re...
来源: Laya_社区 发布时间: 20180814
... Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDataConte...
来源: Laya2.0_文档 发布时间: 20210715
...res/room.lh");//方法二:预加载,创建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room...
来源: Laya_社区 发布时间: 20180817
...GE }, { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.onLoaded)); 运行报错: [warn]Retry to load: comp/image.png [error]Failed to load: comp/image.png 修改导出的TestPage.json里面对应控件引用的skin值加上对应路径 "skin":"unpack/comp/im...
来源: Laya_社区 发布时间: 20171230
...看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法设置,...
来源: Laya_社区 发布时间: 20170206
...载。或者传入地址数组。即可加载多个模型 Laya.loader.create([ {url:"资源目录/模型名字.lh"}, {url:"同上.lh"}, {url:"同上"}, {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...
来源: Laya_社区 发布时间: 20180529
...tain a message type var AwesomeMessage = root.lookup("msg.LoginReq"); // Create a new message var message = AwesomeMessage.create( { openid: "AwesomeString" }); console.log(message.openid) // Verify the message if necessary (i.e. when possibly incomplete or invalid) var errMsg = AwesomeMessage.v...
来源: Laya_社区 发布时间: 20180704
...howall"; 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); originalApe.x = (Laya.stage.width...
来源: Laya2.0_文档 发布时间: 20210714