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

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

341. 鼠标事件监听 异常触发mouseout [ 79%]

...seDown、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行了两遍 Laya_...

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

342. Laya tiledmap 监听事件未响应 [ 79%]

...stPrior = true;         Laya.stage.focus = _mapSprite;         let event = _mapSprite.on(Laya.Event.CLICK, this, () => {             LogUtil.w("响应点击事件")         })     }   尝试使用focus 好像也没有响应 请问大佬们能解答一下吗 附件 : --> 2022-...

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

343. laya.display.Node [ 79%]

...| All Classes | Index | Frames No Frames NodeProperties | Methods | Events Packagelaya.displayClasspublic class NodeInheritanceNode EventDispatcher ObjectSubclasses ComponentNode, Sprite Node 类是可放在显示列表中的所有对象的基类。该显示列表管理 Laya 运行时中显...

来源: laya_api 发布时间: 20170929

344. Animation创建和销毁的问题 [ 79%]

.../初始化引擎 Laya.init(1136, 640,WebGL); trace("ok..."); Laya.stage.on(Event.KEY_DOWN, this, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testA...

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

345. 动画播放完后,怎么知道?Animation.play() [ 79%]

...接 提交 1 个回复 qian 赞同来自: 只播放一次获取回调需要Event.STOPPED 循环播放,获取每次播放完成是Event.COMPLETE 2018-01-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 fenxw 相关问题 骨骼动画...

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

346. 高级应用-渲染纹理 [ 79%]

....stage.height - 100 * Laya.Browser.pixelRatio); changeActionButton.on(Laya.Event.CLICK, this, function () { layaPlane.getChildAt(0).meshRender.material.diffuseTexture = renderTargetCamera.renderTarget; }); })); } function setMaterials(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var mesh...

来源: Laya_示例 发布时间: 20241002

347. layaAir真的没办法做涂鸦板? [ 79%]

...rr=[]; var s=new Laya.Sprite(); Laya.stage.addChild(s); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,function(e){ arr.push([e.stageX,e.stageY]); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,bb) }) Laya.stage.on(Laya.Event.MOUSE_UP,this,function(){ Laya.stage.off(Laya.Event.MOUSE_MOVE,this,bb) }) function bb...

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

348. 关于HttpRequest报错问题 [ 79%]

...nt-Type","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); ...

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

349. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 79%]

...(已经找到问题) package { import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild...

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

350. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 79%]

...w = function () {     LoginView.super(this);     this.btnReg.on(Laya.Event.CLICK, null, function () {         console.log("on btReg event")     }); } 目前编辑的代码辅助,好像还是无法获得父类的成员变量比如 btnReg。这是视频提到的一个ide的功能bug ...

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