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

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

241. Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 [ 63%]

Laya.loader.clearTextureRes引起的内存泄露以及恢复图片显示闪烁 1、引擎和ide版本都是2.1.2 2、点击屏幕会绘制一个光圈特效 3、点击第1次加载资源使用后释放调用Laya.loader.clearTextureRes 4、再点第2次      1、图片代码中指示出必然会...

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

242. 如何获取unity导出的摄像机 [ 63%]

...问过问题,基本没人答,结果都是我自己慢慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete));   再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.g...

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

243. LayaAir IDE 语言包的使用? [ 63%]

...age { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("l...

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

244. timeline播放完成Bug [ 62%]

...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...

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

245. laya升级到2.0.0beat4版本,加载场景出现的bug [ 62%]

laya升级到2.0.0beat4版本,加载场景出现的bug 加载:Laya.loader.create("Laya/Conventional/Map_SCC.ls",Laya.Handler.create(this,this.LoadCompleteHandler)); 加载完成后: var scene3D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常:...

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

246. Laya.Video内存泄漏问题 [ 62%]

..., 800); Laya.Stat.show(0,0); var video_url = '带有音轨的视频'; Laya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_ur...

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

247. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 62%]

...与内容相关的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     ...

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

248. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 62%]

...p=Sprite3D&name=Sprite3DClone)) ```typescript { ...... //加载模型 Laya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/three...

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

249. Image在设置skin的时候可以判断加载不到当前skin就使用默认图片作为skin吗? [ 62%]

...理信息,如果没有返回你就用默认图片。 方案三:先用loader去加载图片,然后用loader.getRes获取资源,如果获取的资源是空的你也可以用默认资源! 2017-02-28 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...

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

250. 滤镜-模糊滤镜 [ 62%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture =...

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