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

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

71. 射线检测-放置物体 [ 64%]

...et = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { var sphere = scene.addChild(new Laya.MeshSprite3D(new Laya.SphereMesh(0.25, 16, 16))); var mat = new Laya.StandardMaterial(); mat.diffuseTexture = Laya.Texture2...

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

72. 怎样获取父类? [ 64%]

... function TipsView(params) { TipsView.super(this); this.sure.on(Laya.Event.MOUSE_UP,this,onSure); function onSure(params) { } } Laya.class(TipsView,"TipsView",TipsViewUI); return TipsView; })();   2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

73. 两个问题都关于LayaAir的ios真机 [ 63%]

... <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UPEvent.CLICK</code> 事件侦听处理函数。 * @param e Event 对象。 */ protected function onMouse(e:Event):void { if (toggle === false && _selected) return; if(e.type==Event.MOUSE_DOWN){ QuickUt...

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

74. UI-RefreshList [ 63%]

....refreshList.array = data; // 添加事件监听 this.refreshList.on(Event.MOUSE_UP, this, this.stageOnMouseUp); this.refreshList.on(Event.MOUSE_OUT, this, this.stageOnMouseUp); //游戏逻辑关联引擎的停止滚动接口 this.refreshList.scrollBar.stopMoveLimit = this.scrollBarIsStopBind.bind(t...

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

75. TypeError: relativePath is undefined [ 62%]

...p(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMap() { //创建地图对象 tiledMap = new TiledMap(); mX = mY = 0; //创建地图,适当的时候调用destory销毁地图 t...

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

76. 图片像素精准点击问题! [ 62%]

...n(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp, [true]); } /** 按钮动画处理 */ private hitTest(t: Laya.Image) { let s = t.source.getPixels(t.mouseX, t.mouseY, 1, 1).join(''); if (s == '0000') return false; this.down = t; return true; }...

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

77. 射线检测-点击行走 [ 62%]

...var _vector3 = new Laya.Vector3(); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { Laya.Vector3.add(_outHitInfo.position, _offset, _vector3); Laya.Tween.to(_position, {x: _vector3.x, y: _vector3.y, z: _vector3.z}, 500/**,Ease.circIn*/); Laya.Q...

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

78. Laya.stage.on的Mouse事件,正常情况下没问题,但是Laya.stage.pos移动后就失灵了,请问如何解决? [ 61%]

...请问如何解决? 我这样设置的代码: Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouse); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouse); 在frameLoop中,我让Laya.stage.pos(movex,movey)后,就再不会调用thi...

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

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

...; 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(e){ s.graphics.clear(); arr[arr.length-1].push(e.stageX); arr[arr.length-1].push(e.stageY); for(var i=0;i<arr.length;i++){ s.graphics.d...

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

80. 请问这是原因? [ 61%]

...e2.graphics = graphics2; Laya.stage.addChild(sprite2); Laya.stage.on(Event.MOUSE_UP,this,mouseUP); } public var flagCircle:Graphics = new Graphics(); public var flag:Sprite = new Sprite(); //让直线在圆内旋转 public function mouseUP():void{ var point:Point = sprite.globalToLocal(new Point(Lay...

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