大约有 154 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0035 秒)
Laya_社区(56) Laya_示例(36) Laya2.0_示例(20) Laya3.0_api(13) Laya2.0_api(12) Laya3.0_文档(9) Laya2.0_文档(6) laya_api(2)
...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onM...
来源: Laya_示例 发布时间: 20241002
...量的点积。 Vector2 forNativeElement(nativeElements:Float32Array = null):voidVector2 fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector2 normalize(s:Vector2, out:Vector2):void[static] 归一化二维向量。 Vector2 rewriteNumProperty(proto:*, name:String,...
来源: Laya2.0_api 发布时间: 20190513
...形。 此方法会修改本对象。 Rectangle clone(out:Rectangle = null):Rectangle 返回一个 Rectangle 对象,其 x、y、width 和 height 属性的值与当前 Rectangle 对象的对应值相同。 Rectangle contains(x:Number, y:Number):Boolean 确定由此 Rectangle 对象定义的...
来源: laya_api 发布时间: 20170929
...ent.MOUSE_DOWN, this, onMouseDown); } private function onMouseDown(e:Event=null):void { var touches:Array = e.touches; if(touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onM...
来源: Laya2.0_示例 发布时间: 20241002
... view: Matrix4x4 视图矩阵。 world: Matrix4x4 世界矩阵,可设置为null。 out: Vector3 输出向量。 Returns void Globals "laya/d3/math/Viewport" Viewport constructor height maxDepth minDepth width x y _tempViewport cloneTo project set unprojectFromMat unprojectFromWVP Legend Class Class ...
来源: Laya3.0_api 发布时间: 20231115
...形。 此方法会修改本对象。 Rectangle clone(out:Rectangle = null):Rectangle 返回一个 Rectangle 对象,其 x、y、width 和 height 属性的值与当前 Rectangle 对象的对应值相同。 Rectangle contains(x:Number, y:Number):Boolean 确定由此 Rectangle 对象定义的...
来源: Laya2.0_api 发布时间: 20190513
... Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.drawPie(216, 216, 216, -90, (-90 + Math.floor(percent * 360)), "#ff0000"); /...
来源: Laya_社区 发布时间: 20190629
..., 0)); layaMonkey3 = scene.addChild(Laya.Sprite3D.instantiate(layaMonkey1, null, false, new Laya.Vector3(0.6, 0, 0))); Laya.timer.frameLoop(1, this, animate); } var _position = new Laya.Vector3(-0.6, 0, 0); var _rotate = new Laya.Vector3(0, 1, 0); var _scale = new Laya.Vector3(); var scaleDelta = 0;...
来源: Laya_示例 发布时间: 20241002
...var vibrateObj = { x: 0, y: 0, rotation: 0, view: null }; /** * 调用该方法前,请将view的描点设置为中心点 * 震屏效果 * 三个变量:x水平方向 5,y垂直方向 5,rotation旋转角度 10 * @param view * @param time 持续时间 以毫秒...
来源: Laya_社区 发布时间: 20190401
...form.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addC...
来源: Laya_示例 发布时间: 20241002