大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...ent){ var index=element._getIndexInList(); this.length--; if (index!==this.length){ var end=this.elements[this.length]; this.elements[index]=end; end._setIndexI...
来源: Laya_社区 发布时间: 20190820
...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this....
来源: Laya2.0_示例 发布时间: 20251209
...载 Laya.Scene3D.load("res/TerrainScene/XunLongShi.ls",Laya.Handler.create(this,function(scene) { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_...
来源: Laya2.0_文档 发布时间: 20210715
...res/01/mfs_01.lh'); scene.addChild(sp); sp.on(Laya.Event.HIERARCHY_LOADED, this, function(){ sp.transform.localPosition = new Laya.Vector3(1, 1, 1); var scale = 1; var v3 = sp.transform.localScale; v3.x = scale; v3.y = scale; v3.z = scale; sp.transform.localScale = v3; }) //这个物体里摄像机...
来源: Laya_社区 发布时间: 20170504
... args:Array = null):void 延迟执行。 Parameters caller:* — 执行域(this)。 method:Function — 定时器回调函数。 args:Array (default = null) — 回调参数。 clear()method public function clear(caller:*, method:Function):void 清理定时器。 Parameters caller:* — 执行...
来源: Laya2.0_api 发布时间: 20190513
...0' ok='ok' isOpen='true'/>"+ "</dir>"+ "</data>"; var xml = this.parseXMLFromString(xmlString); console.log(this.m_tree) this.m_tree.xml =xml; 2017-07-17 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这里以alpha,官方tree示例为例,你可以参考下 1、在xml里...
来源: Laya_社区 发布时间: 20170717
...e.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new Laya.Animation()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./character/m1...
来源: Laya_社区 发布时间: 20200910
...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.AL...
来源: Laya_示例 发布时间: 20251209
....stage.bgColor = "#232628"; Laya.loader.load("res/logo.png",Handler.create(this,onLoaded)); } private function onLoaded():void { img=new Image(); img.skin="res/logo.png"; Laya.stage.addChild(img); Laya.timer.once(500,this,onClick); //Laya.stage.on(Event.CLICK,this,onClick); } private function onClic...
来源: Laya_社区 发布时间: 20170704
....getInstance().uninit(); } public void login( final String userId){ that = this;//反射需要指定的对像,在抛到主线程后this的对像不一样了,先把他用that存这,如果你们有更好的办法可以说下,我是临时用两天时间边学边做,不太懂JAVA(PS:压根...
来源: Laya_社区 发布时间: 20170722