大约有 341 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya_社区(187) Laya2.0_文档(42) Laya3.0_api(25) Laya3.0_文档(22) laya_api(18) Laya_示例(17) Laya2.0_api(16) Laya2.0_示例(14)
...60); Laya.stage.addChild(this.btn); //添加侦听 this.btn.on(Event.MOUSE_UP, this, this.onMouseUp); } /** * 鼠标事件响应函数 * @param evt */ onMouseUp(evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true;...
来源: Laya2.0_示例 发布时间: 20251130
...calScaleZ owner position rotation rotationEuler scale worldMatrix worldNeedUpdate Methods event getForward getFrontFaceValue getRight getUp getWorldLossyScale globalToLocal hasListener localToGlobal lookAt objLookat off offAll offAllCaller on once rotate rotationTo setWorldLossyScale toDir toLocalNo...
来源: Laya3.0_api 发布时间: 20231115
...n 输出四元数 Returns void Static lookAt lookAt(eye: any, target: any, up: any, out: ConchQuaternion): void Defined in laya/d3/math/Native/ConchQuaternion.ts:680 计算观察四元数 Parameters eye: any 观察者位置 target: any 目标位置 up: any 上向量 out: ConchQuaternion 输出四元...
来源: Laya3.0_api 发布时间: 20231102
...is.layer = null; //是否按下 this.isDown = false; //是否弹起 this.isUp = false; //是否移动 this.isMove = false; } tip:其实是否按下,是否弹起和是否移动,有点多余了 //初始化你预先设置的参数 ModeKey.prototype.init = function () { console.log(this.moveKey, thi...
来源: Laya_社区 发布时间: 20171030
...ypress[static] 定义 keypress 事件对象的 type 属性值。Event KEY_UP : String = keyup[static] 定义 keyup 事件对象的 type 属性值。Event LABEL : String = label[static] 定义 label 事件对象的 type 属性值。Event LINK : String = link[static] 定义 link 事件对象的 typ...
来源: Laya2.0_api 发布时间: 20190513
...60); Laya.stage.addChild(this.btn); //添加侦听 this.btn.on(Event.MOUSE_UP, this, this.onMouseUp); }; /** * 鼠标事件响应函数 * @param evt */ GameMain.prototype.onMouseUp = function (evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复...
来源: Laya_示例 发布时间: 20251130
...ya.Event.MOUSE_MOVE, this, this.__mouseMove); this.bmp.on(Laya.Event.MOUSE_UP, this, this.__mouseUp); console.log(this.pos0.x); } __mouseMove(e:Event){ this.pos1.x=this.bmp.mouseX this.pos1.y=this.bmp.mouseY; if(Utils3D.getThis.getDistance(this.pos0,this.pos1)>10){ this.bmp.graphics.drawLine(this...
来源: Laya_社区 发布时间: 20170831
...ypress[static] 定义 keypress 事件对象的 type 属性值。Event KEY_UP : String = keyup[static] 定义 keyup 事件对象的 type 属性值。Event LABEL : String = label[static] 定义 label 事件对象的 type 属性值。Event LAYER_CHANGED : String = layerchanged[static] 定义 layerch...
来源: laya_api 发布时间: 20170929
...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
... 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_文档 发布时间: 20251010