• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 803 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)

251. 如何往TiledMap格子内追加精灵 [ 66%]

...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

252. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 65%]

...集 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

253. mac系统下 TypeScript 语言 ,声音无法播放? [ 65%]

...纪龙 赞同来自: 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

254. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 65%]

... 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

255. 加载unity导出的.lh文件报错! [ 65%]

...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

256. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 65%]

...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

257. 环形进度条 [ 65%]

...看一下这种遮罩bar的进度条设了遮罩不起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度不能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法设置,...

来源: Laya_社区 发布时间: 20170206

258. 如何加载.lh文件 [ 65%]

...载。或者传入地址数组。即可加载多个模型   Laya.loader.create([ {url:"资源目录/模型名字.lh"}, {url:"同上.lh"},  {url:"同上"},  {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

来源: Laya_社区 发布时间: 20180529

259. 微信小游戏中不能加载proto文件 [ 65%]

...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

260. 设置滤镜(JavaScript-LayaAir基础篇(JS)-位图) [ 65%]

...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