大约有 908 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0067 秒)
Laya_社区(457) Laya2.0_示例(91) Laya_示例(88) Laya2.0_文档(74) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(23)
...手试过 maomaolw3 • 2017-10-17 12:10 Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Laya.stage.scaleMode = "fixedauto"; 舞台初始化需要改成这也吗 Monica • 2017-10-17 18:06 @maomaolw3:初始化引擎这块没错... Monica • 2017-10-17 ...
来源: Laya_社区 发布时间: 20171017
...TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new...
来源: Laya_社区 发布时间: 20161115
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite editable : Bool...
来源: Laya2.0_api 发布时间: 20190513
...h / 2 - changeActionButton.width * Laya.Browser.pixelRatio / 2, Laya.stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { if (++curStateIndex % 2 == 1) { debugModel = true; ...
来源: Laya_社区 发布时间: 20171127
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...
来源: Laya2.0_api 发布时间: 20190513
...on login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stage...
来源: Laya_社区 发布时间: 20170806
...ontSize = 30; txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000); 5秒钟把文本放大2倍,感觉是 fontSize在不平滑的增大,显得比较卡,...
来源: Laya_社区 发布时间: 20200410
... this.iframe.style.width = "100%"; this.iframe.style.height = "100%" this.iframe.style.border = "none"; this.iframe.style.zIndex=-1 } 那我有一个需求,想将document 元素 层级设置为-1,任看得见,该如何实现呢 2024-03-05 0...
来源: Laya_社区 发布时间: 20240304
...w Panel(); panel.vScrollBarSkin="comp/vscroll.png"; panel.width=300; panel.height=300; Laya.stage.addChild(panel); panel.addChild(img); panel.vScrollBar.min=1; panel.vScrollBar.max=500; panel.vScrollBar.value=panel.vScrollBar.max; Laya.timer.frameLoop(12,this,onLoop); } private function onLoop():voi...
来源: Laya_社区 发布时间: 20161103
... //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //设置舞台CLICK,该CLICK作为截屏的开关,点击舞台,对舞台对应的canvas...
来源: Laya_社区 发布时间: 20170424