大约有 417 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)
Laya_社区(291) Laya2.0_示例(32) Laya_示例(27) Laya2.0_文档(23) laya_api(14) Laya2.0_api(13) Laya3.0_文档(13) Laya3.0_api(4)
... { GameStart.super(this); Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test); } function Test(e){ console.log(e.keycode); } 按下按键后一直输出undefined,在入口类里面却能输出对应按键编号,是...
来源: Laya_社区 发布时间: 20180208
...a.d3.js:15158) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252) at EventHandler.__proto.runWith (laya.core.js:1127) at Loader.__proto.event (laya.core.js:883) at Loader.__proto.complete (laya.core.js:14959) at Loader.__proto.onLoaded (laya.core.js:14927) at EventHandler.__proto.runWith (laya...
来源: Laya_社区 发布时间: 20181013
...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
...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
...毕,此方法只执行一次 */ 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
...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
... 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button 可以设置tag吗 或者通过监听事件透传? 附件 : --> 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170425
...生flash下,如果要给List组件的每一条列表都侦听一个MouseEvent.CLICK事件,最简单的方法就是在for循环下对按钮名称进行遍历,以此来添加鼠标事件并根据按钮名称来进行区分。 那么Morn下有更简单的实现方式吗?(*^__^*) 嘻嘻……...
来源: Laya_社区 发布时间: 20151224
...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
...后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 event自定义事件的问题 关于apk打包动画卡的问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 问题状态 最新活动: 2017-02-12 19:05 浏览: 1677 关注: 2 人 reven1983 • 2017-02-12 ...
来源: Laya_社区 发布时间: 20170212