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

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

591. laya.ui.Tab_API3.0 [ 52%]

...ion Tab_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var tab:Tab = new Tab();/...

来源: Laya3.0_api 发布时间: 20231115

592. vivo小游戏 LayaIDE2.2.0使用fairygui报错 [ 52%]

...);      console.log('sssss', fgui.GRoot.inst.displayObject);     Laya.stage.addChild(fgui.GRoot.inst.displayObject);       fgui.UIPackage.addPackage("res/Basics");             fgui.UIConfig.defaultFont = "Microsoft YaHei";     fgui.UIConfig.verticalScrollBar = "ui://Basic/ScrollB...

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

593. laya.ui.Panel_API3.0 [ 52%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize elasticEnabled filters globalRotation globalScaleX globalScaleY graphics gray hScrollBar hScrollBarSkin height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivot...

来源: Laya3.0_api 发布时间: 20231115

594. laya.ui.List_API3.0 [ 52%]

....init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoad...

来源: Laya3.0_api 发布时间: 20231115

595. 关于闭包的问题 [ 51%]

...terList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on("click", this, (function(para){ console.log("z:"+z+";para:"+para+";letterList[para]:"+letterList[para]); return function () { alert("z:"+z+";para:" + para + "I'm letter " + letterList[para]);...

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

596. [LayaAir3]list.selectHandler [ 51%]

...n.skin="resources/ui/目录2.png"; let modelCtrl:ModelCtrl =Laya.stage.getChildByName("Scene3D").getComponent(ModelCtrl) as ModelCtrl; if(modelCtrl!=null){ this.uiCtrl.InitLeftUI(modelCtrl.data.result); } if(this.uiCtrl._tagList!=null){ this.uiCtrl._tagList.visible=true; } }else{...

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

597. 如何使用graphics绘画虚线 [ 51%]

...;_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

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

598. 按钮拖动的bug [ 51%]

...其实此时鼠标就是在控件范围内的。目前我把事件挂Laya.stage上,已解决。 另外像DRAG_START这种事件得用户自己调startDrag这样的接口才能触发,新手谁知道啊!都用户自己调了,还要事件干什么?感觉这整套设计乱糟糟的啊,个人...

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

599. laya.physics.PhysicsDebugDraw [ 51%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

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

600. laya.ui.Tree_API3.0 [ 51%]

... Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png", "resource/ui/clip_selectBox....

来源: Laya3.0_api 发布时间: 20231115