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

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

731. [LayaAir3]list.selectHandler [ 72%]

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

732. 请问Laya如果获取Laya.Event.CLICK时间的点击坐标? [ 72%]

...var clickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100 ); clickRect.pos( 0, 0 ); clickRect.size( Laya.stage.width, Laya.stage.height-100 ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeV...

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

733. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 72%]

...染模式 Laya.init(600, 400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.skin1 = "checkbox.png"; this.skin2 = "checkbox.png"; //加载资源成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); functio...

来源: Laya2.0_文档 发布时间: 20210715

734. 自定义对话框设置zOrder后,关闭时报错 [ 72%]

...countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", CountdownUI); return countdownBar; }());...

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

735. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 72%]

...ris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = ...

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

736. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 72%]

...og("onLoaded"); //实例化RunGame // var runGame = new RunGame(); // Laya.stage.addChild(runGame); var sp = new laya.display.Sprite(); sp.x = 100; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.lo...

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

737. 按钮组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 72%]

...g"]; // 计算将Button至于舞台中心的偏移量 this.xOffset = (Laya.stage.width - this.HORIZONTAL_SPACING * (this.COLUMNS - 1) - this.BUTTON_WIDTH) / 2; this.yOffset = (Laya.stage.height - this.VERTICAL_SPACING * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.lo...

来源: Laya3.0_文档 发布时间: 20251010

738. textinput(type=password)手机打开华为安全键盘后,无法关闭(官网的例子) [ 72%]

...为安全键盘后,无法关闭(官网的例子) (function() {     var Stage = Laya.Stage;     var TextInput = Laya.TextInput;     var Handler = Laya.Handler;     var WebGL = Laya.WebGL;     var SPACING = 100;     var INPUT_WIDTH = 300;     var INPUT_HEIGHT = 50;     var Y_OF...

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

739. 3D射线穿透UI问题 [ 72%]

...上面,我给UI设置了名字,加到舞台 Laya.Button button = Laya.stage.addChild(new Laya.Button("res/layabox.png", "切换动作")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现  });     在另一个方法里面 Laya.stage.on(Lay...

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

740. 分享:IDE使用SWF动画的销毁与反复创建 [ 72%]

...;             testView.mc.play(0,true);             Laya.stage.addChild(testView);             Laya.timer.once(2000,this,onLoop,[testView]);         }         private function onLoop(testView:TestView):void         {             testView.mc.stop(...

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