大约有 269 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)
Laya_社区(77) Laya3.0_api(71) Laya2.0_api(53) laya_api(38) Laya3.0_文档(14) Laya2.0_文档(10) Laya2.0_示例(3) Laya_示例(3)
...("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
...获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边之间的垂直距离(以像素为单位)。 UIComponent cacheAs : String 指定显示对象...
来源: Laya2.0_api 发布时间: 20190513
... } private getGets() { var tempUrl: String = Laya.Browser.window.location.href; var u = tempUrl.split("?"); var gets: Object = {}; if (u[1]) { u = u[1].split("&"); ...
来源: Laya_社区 发布时间: 20181213