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

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

31. 鼠标交互-Hold [ 73%]

...imer.once(HOLD_TRIGGER_TIME, this, this.onHold); Laya.stage.on(Event.MOUSE_UP, this, this.onApeRelease); } onHold() { const Tween = Laya.Tween, Ease = Laya.Ease; Tween.to(this.ape, { "scaleX": 1, "scaleY": 1 }, 500, Ease.bounceOut); isApeHold = true; } /** 鼠标放开后停止hold */ onApeRelease()...

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

32. CameraMoveScript.as在哪儿下载群里的有错 [ 72%]

...eScript() { } override public function _initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没...

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

33. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 72%]

...{ //按下,按钮进行缩放 _owner.scale(.8,.8); _owner.on(Event.MOUSE_UP,this,onUp); } private function onUp():void { // 抬起,按钮回复原样 _owner.scale(1,1); _owner.off(Event.MOUSE_UP,this,onUp); } } } H、现在我们的例子已经完成了,我们来看下效果 H-1 设置isScale=...

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

34. 无法清除指定定时器 [ 72%]

...trace("______________________");         } this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.timer.clear(this, this.looppp);             SoundManager.playSound("res/sound/onClick.wav");         } 我这边测试没...

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

35. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

... public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smooth: number = 2;//位置平滑移动插值参数值 public camDepthSmooth: number = 20 ...

来源: Laya3.0_文档 发布时间: 20240910

36. 射线检测-放置物体 [ 70%]

...ew 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.Texture2D.load...

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

37. 射线检测-点击行走 [ 70%]

...ya.stage.addChild(label); var _offset = new Laya.Vector3(0, 0.25, 0); var _upVector3 = new Laya.Vector3(0, 1, 0); var _vector3 = new Laya.Vector3(); //鼠标事件 Laya.stage.on(Laya.Event.MOUSE_UP, this, function () { if (_outHitInfo.distance !== -1) { Laya.Vector3.add(_outHitInfo.position, _offset...

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

38. 提交一个 摄像机 天空盒的ltc文件bug [ 69%]

...过工具导出的json文件格式中,ltcdata采用的是 left right up down back front 等方向表示,而代码中加载的是 px py pz nx ny nz 等。 即 引擎代码 var urls=[URL.formatURL(ltcData.px,ltcBasePath),URL.formatURL(ltcData.nx,ltcBasePath),URL.formatURL(ltcData.py...

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

39. Laya.Quaternion.rotationLookAt 怀疑存在BUG [ 69%]

...on();     Laya.Quaternion.rotationLookAt(enimy2cameradir, Laya.Vector3._Up, outQua);      ca.rotation = outQua;    }    UNITY版本  void RoundCamera_U3D(Vector3 zhujue, Vector3 enimy, Transform ca)   {        var enimyPos = enimy;       enimyPos.y = 0;        var camer...

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

40. list 中的scrollbar [ 68%]

...learTween(this);         Laya.stage.once(/*laya.events.Event.MOUSE_UP*/"mouseup",this,this.onStageMouseUp2);         Laya.stage.once(/*laya.events.Event.MOUSE_OUT*/"mouseout",this,this.onStageMouseUp2);         Laya.timer.frameLoop(1,this,this.loop);     } // 点击之后...

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