• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 908 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0067 秒)

741. 相对坐标布局的使用 [ 61%]

...手试过 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

742. ToolTip鼠标悬停的使用 [ 61%]

...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

743. laya.display.Input [ 61%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  editable : Bool...

来源: Laya2.0_api 发布时间: 20190513

744. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 61%]

...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

745. laya.display.Animation [ 61%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array...

来源: Laya2.0_api 发布时间: 20190513

746. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 61%]

...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

747. tween对Text的缩放,为何会抖动呢? [ 61%]

...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

748. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 61%]

...       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

749. Panel滚动条滑块位于最下方 [ 61%]

...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

750. 分享:截屏! [ 61%]

...  //初始化引擎             Laya.init(Browser.width, Browser.height,WebGL);             //设置背景颜色             Laya.stage.bgColor = "#ffcccc";             //设置舞台CLICK,该CLICK作为截屏的开关,点击舞台,对舞台对应的canvas...

来源: Laya_社区 发布时间: 20170424