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

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

361. 图片切换后显示两个状态 [ 57%]

... loadImage() 的 complete 对应函数中加了一句 myImg.source = Laya.loader.getRes("2.png"); 手动赋值 texture 就可以了。 Monica • 2017-06-18 11:21 @Loongman:给Image设置皮肤的话直接用skin即可,之后切换皮肤也只需要切换skin

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

362. 请教这种bug是如何产生的 [ 57%]

...美术规范的问题哈 1.7.20beta有bug,帧属性面板打不开 Laya.Loader.getRes请教 我的tieldmap生成的json文件里data是这种格式,地图显示有误 富文本下划线绘制bug 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 LayaAir2.61 测试版 物理...

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

363. Oppo加载.ls资源错误 [ 57%]

Oppo加载.ls资源错误 Laya.loader.create("res/scenes/LayaScene_game/game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { consol...

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

364. 写小游戏排行耪时主域向子域发送文件时报错 [ 57%]

...耪时主域向子域发送文件时报错 代码postMessage(2,{data:Laya.loader.getRes("res/fui/Lobby/Lobby_atlas0.png")}) 报错:Converting circular structure to JSON;wx.postMessage 2018-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

365. 3D支持图集吗? [ 57%]

...的一个图片吗?  //2D加载图集 var texture: Laya.Texture = Laya.loader.getRes("magic/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp);   //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMe...

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

366. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 57%]

...source:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100))...

来源: Laya2.0_文档 发布时间: 20210714

367. TypeError: this._childs is null [ 57%]

...Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Load.loader.getRes返回都是Null laya创建wxopendataviewer组件报 Cannot read property "createTexture" of null 的错误,疑似layabug Cannot read property 'offCanplay' of null laya2.9版本,脚本如何正确添加,现...

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

368. 请教关于粒子纹理是否会进入动态图集里? [ 57%]

...的attribute变量怎么动态修改 IDE1.7.8 json图集加载问题 Laya.Loader.getRes请教 请教一个关于laya2.5d项目美术规范的问题哈 做好的粒子特效在U3D里循环正常。在LAYA插件里预览跳帧闪烁。序列素材本身也是循环的。但是不知道为什么会跳...

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

369. sprite添加texture后,sprite无法触发点击事件? [ 57%]

...,sprite无法触发点击事件? this.item.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name])); Laya.stage.addChild(this.item);  this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

370. app声音有问题 [ 57%]

...后再调用 ios中没有触发事件前使用playSound没有声音 Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或...

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