大约有 1,240 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
...产生的sprite的点击事件,急,大神帮看哈 遮罩点击事件 event自定义事件的问题 为什么给Sprite容器添加点击事件没反应 点击事件不起效 3d物理不能触发onCollisionEnter事件 微信小游戏与加载图片时不会触发erroe事件 问题状态 最新活...
来源: Laya_社区 发布时间: 20170225
...ar sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ //加载完成返回的data是arraybuffer; //.......这...
来源: Laya2.0_文档 发布时间: 20210715
... this.moveRight=false; // Laya.stage.event("GameOver"); // } // }else{ // this.moving=false; // this.owner.transform.localRotationEuler=this.rotation; // } 附件 :...
来源: Laya_社区 发布时间: 20200222
...舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')}); } 2018-08-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zyx 相关问题 看了其他引擎才发现 LAYA ...
来源: Laya_社区 发布时间: 20180817
...问题,其实很简单,点击方法中,会带一个参数:e:Laya.Event,这个能数有阻止点击事件冒泡 点击事件: this.btnHome.on(Laya.Event.CLICK, this, this.homeClick); private homeClick(e) { //防止点击事件穿透 e.stopPropagation(); } 2018-10-12 0 0 分享 微博...
来源: Laya_社区 发布时间: 20180901
layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 Laya.stage.on(Laya.Event.FRAME,this.onEnterFrame); onEnterFrame() { t++; console.log("t="+t); } 希望每帧 t+1.然后显示 2018-11-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20181107
...nder.lineWidth = 5; } // 鼠标按下时开始绘制 onMouseDown(evt: Laya.Event): void { this.isDrawing = true; // 记录起始点 this.lastMousePos[0] = evt.stageX - this.owner.x; this.lastMousePos[1] = evt.stageY - this.owner.y; } // 鼠标松开时停止绘制 onMouseUp(): void { this.isDrawing ...
来源: Laya3.0_文档 发布时间: 20251010
...宽高并刷新显示! package { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init...
来源: Laya_社区 发布时间: 20170601
...ight); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); function onDeviceorientation(absolute, rotationInfo) { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" ...
来源: Laya2.0_文档 发布时间: 20210714
...); animator.addClip(totalAnimationClip,"runShoot",startFrame); animator.on(Event.STOPPED, this, this.removeClip); animator.on(Event.COMPLETE, this, this.removeClip); animator.play("runShoot"); 2018-07-26 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个要在unity 里面进行切片,...
来源: Laya_社区 发布时间: 20180725