大约有 271 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(78) Laya3.0_api(71) Laya2.0_api(53) laya_api(38) Laya3.0_文档(15) Laya2.0_文档(10) Laya2.0_示例(3) Laya_示例(3)
...所占用的内存怎么释放? 尔东 • 2019-03-08 10:47 clearRes(url:String):void [static] 清理指定资源地址的缓存。 尔东 • 2019-03-08 10:20 请不要轻易锁定帖子可以吗,我们的需求是自己使用计数引用自己管理资源释放,而不是使用destroyUnusedRe...
来源: Laya_社区 发布时间: 20190307
...代码如下: ```typescript // 程序入口 class MaskDemo{ private Res:string; private img:Laya.Sprite; constructor() { Laya.init(1336,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成...
来源: Laya2.0_文档 发布时间: 20210715
...("skyBox/skyCube.ltc"); camera.sky = sky; } private _sprite3dURl:string = "LayaScene_ActionCheck/ActionCheck.lh"; wky379937316 • 2018-03-19 21:08 这是什么情况呢?是引擎不支持场景吗?如果能解决,请给一个解决方案,谢谢 涛涛~ • 2019-07-06 16:...
来源: Laya_社区 发布时间: 20180317
... // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); ...
来源: Laya_社区 发布时间: 20170511
...始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来当做url传递给loadImage...
来源: Laya2.0_文档 发布时间: 20210715
... MAXCOLOROVERLIFEGRADIENTCOLORS : int[static] ShuriKenParticle3D name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node particleRenderer : ShurikenParticleRenderer[read-only] 获取粒子渲染器。 ShuriKenParticle3D ...
来源: Laya2.0_api 发布时间: 20190513
...chy : Boolean[read-only] 获取在场景中是否激活。 Node align : String水平对齐方式FontClip alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值...
来源: Laya2.0_api 发布时间: 20190513
...||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.lo...
来源: Laya_社区 发布时间: 20190307
...false */ public static function clearRes(url:String, forceDispose:Boolean = false):void { Loader.clearRes清理你把里面的第二个参数设置成false试试 如果还是不行的话你就把资源清理方法改用一下这个方法!还有如果你的图片小于5...
来源: Laya_社区 发布时间: 20180424
... = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; case 4: skin = "comp/checkbox.png"; break;...
来源: Laya_社区 发布时间: 20170607