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

大约有 341 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)

131. 加载-销毁Texture使用的图片资源 [ 64%]

...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

132. laya.d3.core.Transform3D_API3.0 [ 64%]

...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

133. laya.d3.math.native.ConchQuaternion_API3.0 [ 64%]

...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

134. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 63%]

...is.layer = null; //是否按下 this.isDown = false; //是否弹起 this.isUp = false; //是否移动 this.isMove = false; } tip:其实是否按下,是否弹起和是否移动,有点多余了 //初始化你预先设置的参数 ModeKey.prototype.init = function () { console.log(this.moveKey, thi...

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

135. laya.ui.UIEvent [ 63%]

...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

136. 加载-销毁Texture使用的图片资源 [ 63%]

...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

137. webGL模式下 graphic画线涂鸦,一直不停画会出现线条异常 [ 62%]

...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

138. laya.ui.UIEvent [ 62%]

...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

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

...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

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

... 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