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

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

91. 鼠标交互-拖动 [ 74%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { createApe(); showDragRegion(); } function createApe() { ape = new Sprite(); ape.loadImage(ApePath); Laya.stage.addChild(ape); var texture = Laya.load...

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

92. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 74%]

...e(); // 守护神 this.angel = new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x...

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

93. 请问怎么监听在IDE中创建的UI中资源的加载进度呢 [ 74%]

...的加载进度呢 我在IDE中创建了整个游戏界面,然后通过loader去加载界面的配置文件:Laya.loader.load(['res/atlas/game.json'],Laya.Handler.create(this,Slot.onSourcesLoaded), Laya.Handler.create(this,Slot.onSourcesLoading,null,false),Laya.Loader.ATLAS);这样写似乎监听...

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

94. Laya.Sprite3D.load机制bug [ 74%]

...ash起,就一直存在的bug 1.7.20beta有bug,帧属性面板打不开 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug EffectAnimation Bug image loadimage 加载网络图片BUG 2.3.0发布微信小游戏,自动缓存:查找不到...

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

95. 鼠标交互-拖动 [ 73%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(ApePath, Handler.create(this, this.setup)); } setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath)...

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

96. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 73%]

有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 在电脑上Loader预加载方法都很正常  但是一旦打包成APK安装到手机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, ...

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

97. TimeLineUI不存在的问题 [ 73%]

...gba(0,0,0,0.1)"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 ...

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

98. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 73%]

...文件后,除第一次外,再加载特效不显示了? 缓存:Laya.loader.create([             ...             "Resources/Player/nan_jianshi/Effect/dmc_skycity_attack1/.lh",             ... ], XXX, XXX);   加载: var effect = actor.mView.root.addChild(Laya.Sprite3D.load...

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

99. U3D导出两个相同的特效。有一个不显示 [ 73%]

...个粒子特效。在laya中代码如下: this._createSprite3D = 2; Laya.loader.create("res/h5/LayaScene_Effect/Effect.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); Laya.loader.create("res/h5/LayaScene_aixin/aixin.lh",Handler.create(this,this.onEffectOK),null,Laya.Sprite3D); onEffect...

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

100. load 跨域请求 [ 73%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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