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

大约有 438 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

321. laya.ui.TextArea [ 62%]

...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label Component Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited...

来源: laya_api 发布时间: 20170929

322. drawToTexture截大图有问题,会丢失 [ 61%]

...e;         Laya.stage.addChild(this.nsp);         this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null)     }     drawImg(e:Event=null):void{         var copySpr:Laya.Sprite=new Laya.Sprite();         copySpr.texture=this.nsp.drawToTexture(1600,1600,0,0) as Laya.Texture;       ...

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

323. 精灵 · LayaAir3.0文档 · LAYABOX [ 61%]

...毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听,sprite1或sprite2均可 console.log(this.sprite1.mouseEnabled);//打印父节点sprite1的MouseEnabled的值:true console.log(this.sprite2.mouseEnabled);//打印子节点sp...

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

324. laya.ui.TextArea [ 61%]

...ll Classes | Index | Frames No Frames TextAreaProperties | Methods | Events Packagelaya.uiClasspublic class TextAreaInheritanceTextArea TextInput Label UIComponent Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherit...

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

325. 多个button如何区分 [ 61%]

... 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button  可以设置tag吗 或者通过监听事件透传?   附件 : --> 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

326. Morn下List组件如何给每一条列表添加Click事件,是需要for吗? [ 60%]

...生flash下,如果要给List组件的每一条列表都侦听一个MouseEvent.CLICK事件,最简单的方法就是在for循环下对按钮名称进行遍历,以此来添加鼠标事件并根据按钮名称来进行区分。   那么Morn下有更简单的实现方式吗?(*^__^*) 嘻嘻……...

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

327. 2D物理-仿生机器人 [ 60%]

...LE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.Construct(); this.eventListener(); } Construct() { let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let rigidbody = new Laya.RigidBody(); rigidbody.type = "static"; ground.addComponentIntance(rigidbody); let chainCollider = gr...

来源: Laya2.0_示例 发布时间: 20240930

328. Native打包的横竖屏问题 [ 60%]

...后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 event自定义事件的问题 关于apk打包动画卡的问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 问题状态 最新活动: 2017-02-12 19:05 浏览: 1677 关注: 2 人 reven1983 • 2017-02-12 ...

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

329. 关于mouseThough=true的问题 [ 60%]

...onLoaded():void{ var img:Image = new Image("fish_6.png"); img.on(Event.CLICK,this,onClick); img.mouseThrough = true; Laya.stage.addChild(img); } 代码就这么简单,图片我传到附件里面 shiyang • 2018-03-14 15:55 private function onClick(e:Event):void{ trace("xxxxxxx&quot...

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

330. matter.js 点击事件 [ 60%]

...发布微信小游戏之后 点击没反应 matter.js是最新的 Matter.Events.on(mouseConstraint, "startdrag", function(e):*{                     console.log("点中刚体")             }) 2019-09-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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