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

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

531. 新手,用flashbuilder配置好加载图片显示第一步就不行了 [ 70%]

...             //加载图片"             img.loadImage("/res/atlas/game/bg.png",50,50,130,35);    I:\MyDream\Dream\bin-debug\h5\res\atlas\game\bg.png  这个是图片地址 2017-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

532. 打包后生成不了图集 [ 70%]

...建一个新项目后也生成不了,如下comp目录下有图片,但res目录下生成不出来新图集 2017-09-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Lu123456 相关问题 用二的幂次方图集和非二的幂次方...

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

533. 请教:粒子的官方教程中的配置文件是从哪里得到了? [ 70%]

...到了? 在学习粒子教程代码时,有一句是 Laya.loader.load("res/particles/particleNew.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);   其中这个 res/particles/particleNew.part文件是怎么获得的?谢谢   如下图 附件 : --> 2018-03-17 添加评论 免...

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

534. 请问我用网络格式加载成功后,在服务器替换image.atlas和images.png重新打开小游戏没有重新加载服务器的png,只重新加载了atlas [ 70%]

...小游戏没有重新加载服务器的png,只重新加载了atlas var resArray = [ //{ url: "https://piggy.com/res/atlas/images.atlas", type : Laya.Loader./png}, { url: "https://piggy.com/res/atlas/images.atlas", type: Laya.Loader.ATLAS }, { url: "https://piggy.com/res/swf/flash.json", type: Laya...

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

535. 骨骼动画-橡胶人 [ 70%]

...f"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes4/stretchyman.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error")...

来源: Laya_示例 发布时间: 20251209

536. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 70%]

Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/some...

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

537. 输入设备-摇一摇 [ 70%]

...on showShakePic() { var shakePic = new Sprite(); shakePic.loadImage("../../res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } function showConsoleText() { console = new Text(); Laya.stage.addChild(console); console.y = picH + 10; console.width = Laya.stage.width; console.height = Laya.sta...

来源: Laya_示例 发布时间: 20251209

538. 生成的粒子特效怎么设置colorComponentInter无效? [ 70%]

...letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponentInter = true; sp = new Particle2D(settin...

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

539. 骨骼动画-适配版Spine [ 70%]

...t = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startFun() { this.temp...

来源: Laya2.0_示例 发布时间: 20251209

540. 请教下微信小游戏的内存和数据缓存? [ 70%]

... 请教一个关于laya2.5d项目美术规范的问题哈 Laya.Loader.getRes请教 微信小程序canvas如何使用layaAir引擎 请问下loader如何强制加载一个文件,避免浏览器的缓存 Animation 的createFrames 使用已经加载的图集缓存动画失败 我用list.array=Array;...

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