大约有 1,240 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0057 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
...Children addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAn...
来源: Laya3.0_api 发布时间: 20231115
...机制、时间和其他一些Timer相关的问题 graphics alpha 问题 event自定义事件的问题 问题状态 最新活动: 2018-12-14 12:04 浏览: 1969 关注: 3 人 boobo • 2018-12-16 13:34 是h5,微信浏览器 boobo • 2018-12-12 12:37 没有用噢,主要是竖屏与横屏直接切...
来源: Laya_社区 发布时间: 20181208
... Laya.stage.addChild(button); button.on(laya.events.Event.CLICK,this,function () { let photo = laya.utils.Browser.getElementById("photo"); photo.click(); }); } } new GameMain(); 为什么 click事件没...
来源: Laya_社区 发布时间: 20161114
...,请参考以下代码 package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; import laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.h...
来源: Laya_社区 发布时间: 20170523
...图集加载问题 关于适配采用showAll后留白部分的颜色问题 event自定义事件的问题 关于主程序过大的问题 问题状态 最新活动: 2025-10-10 17:39 浏览: 3571 关注: 3 人 layabox • 2025-10-10 17:40 不用那么麻烦,取消输入框焦点即可。例如,this...
来源: Laya_社区 发布时间: 20250930
... iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void...
来源: Laya_社区 发布时间: 20180113
... 我会使用下列方式监听视窗改变的事件。Laya.stage.on(Laya.Event.RESIZE,this,this.doResize.bind(this)); 并且会在该事件(doResize)中改变 Laya.stage.scaleMode 的值。doResize () { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; } 但是我发现在onResize事件里...
来源: Laya_社区 发布时间: 20180321
...可以捕获大部分按键 但tab键是无法捕获的! userName_txt.on(Event.KEY_PRESS,this,tabNext,[userName_txt]); private function tabNext(e:Event,target:Node):void { if(e.keyCode == Keyboard.TAB) { //无法触发 焦点直接直接到浏览器外去了(浏...
来源: Laya_社区 发布时间: 20180926
...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex...
来源: Laya3.0_api 发布时间: 20231115
... / ratio; } } reset(); img.on(Laya.Event.LOADED, this, () => { reset(); }); } 2018-05-15 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 沉梦...
来源: Laya_社区 发布时间: 20180514