大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0081 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...tructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.creat...
来源: Laya_社区 发布时间: 20170627
timer无法用clear清除的BUG 我又试了一下, 当loop函数用this绑定时,clear无法清除 ,clearAll可以清除 public function startLoop() { Laya.timer.loop(2000,this,this.onLoop.bind(this)); } private function onLoop():void { if(this.stop){ Laya...
来源: Laya_社区 发布时间: 20171108
...ld(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function() { trace("COMPLETE callback!!"); }); }); 2017-05-15 0 1 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170512
...否让物体产生的阴影颜色 改淡一些 //添加方向光 this.Light = this.mainscene.addChild(new Laya.DirectionLight()); this.Light.color = new Laya.Vector3(0.7, 0.7, 0.7); this.Light.direction = new Laya.Vector3(-1.3, -1.5, -1.6); // shadow this.Light.shadow = true; //产生投影...
来源: Laya_社区 发布时间: 20181016
... Laya.Sprite; var Text = Laya.Text; function UIDropBox() { UIDropBox.super(this); this.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefined console.log(this._super);//undefined this.addChild(this.txt); } Laya.class(UIDropBox, "UIDropBox", Spri...
来源: Laya_社区 发布时间: 20161226
...ope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this....
来源: Laya3.0_文档 发布时间: 20240910
...Other){ (closeOther===void 0)&& (closeOther=false); if (closeOther)this.removeChildren(); if (dialog.popupCenter)this._centerDialog(dialog); this.addChild(dialog); if (dialog.isModal || this._$P["hasZorder"])this.timer.callLater(this,this._checkMask); this.popupEffect && this.popupEf...
来源: Laya_社区 发布时间: 20170807
...8"; Laya.stage.bgColor = "#3d3d3d"; Laya.loader.load(skins, Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { var tabA = createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB = createTab(skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FF...
来源: Laya_示例 发布时间: 20250224
...ope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this....
来源: Laya2.0_文档 发布时间: 20210715
...(var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查看效果 将脚本挂载到Scene2D场景上,然后将List组件拖入到脚本暴露出来的属性...
来源: Laya3.0_文档 发布时间: 20240910