大约有 152 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0036 秒)
laya_api(40) Laya3.0_api(40) Laya_社区(36) Laya2.0_api(14) Laya2.0_文档(11) Laya_示例(7) Laya3.0_文档(4)
...一识别ID。 Returns number 唯一识别ID。 position get position(): Vector2 Defined in laya/d3/Touch.ts:29 获取触摸点的像素坐标。 Returns Vector2 触摸点的像素坐标 [只读]。 Methods _getIndexInList _getIndexInList(): number Implementation of ISingletonElement._getIndexInList...
来源: Laya3.0_api 发布时间: 20231102
...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { box.transform.position = _position; box.transform.rotation = _qu...
来源: Laya_示例 发布时间: 20241117
...ew Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _outHitInfo = new Laya.RaycastHit(); function checkHit() { //从屏幕空间生成射线 point.elements[0] = Laya.MouseManager.instance.mouseX; point.elements[1] = Laya.MouseManager.instance.mouseY; camera.view...
来源: Laya_示例 发布时间: 20241117
...原点。 ![](img/1.png)(图1) ```typescript //创建一个点 var point:Vector2 = new Vector2(); //创建一个射线 var ray: Ray= new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏...
来源: Laya2.0_文档 发布时间: 20210714
... setGlobalMatrix setGlobalNumber setGlobalTexture setGlobalVector setGlobalVector2 setGlobalVector3 setRenderTarget setShaderDataColor setShaderDataInt setShaderDataMatrix setShaderDataNumber setShaderDataTexture setShaderDataVector setShaderDataVector2 setShaderDataVector3 setShaderDefine Construct...
来源: Laya3.0_api 发布时间: 20231115
... this.camera = null; this.lastPosition = new Laya.Vector2(0, 0); this.distance = 0.0; this.disVector1 = new Laya.Vector2(0, 0); this.disVector2 = new Laya.Vector2(0, 0); this.isTwoTouch = false; ...
来源: Laya_社区 发布时间: 20190531
...tartFrame[read-only] 获取开始帧率。TextureSheetAnimation tiles : Vector2纹理平铺。TextureSheetAnimation type : int类型,0为whole sheet、1为singal row。TextureSheetAnimationPublic Methods MethodDefined By TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) ...
来源: laya_api 发布时间: 20170929
...坐标,为射线检测偏差使用 public changeToClientWorld(input:Laya.Vector2):Laya.Vector2 { let ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.sta...
来源: Laya_社区 发布时间: 20180530
...tartFrame[read-only] 获取开始帧率。TextureSheetAnimation tiles : Vector2纹理平铺。TextureSheetAnimation type : int类型,0为whole sheet、1为singal row。TextureSheetAnimationPublic Methods MethodDefined By TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) ...
来源: Laya2.0_api 发布时间: 20190513
...ly exported Menu Globals "laya/d3/core/particleShuriKen/module/GradientDataVector2" GradientDataVector2 Class GradientDataVector2 GradientDataVector2 类用于创建二维向量渐变。 Hierarchy GradientDataVector2 Implements IClone Index Constructors constructor Accessors gradientCount Methods ad...
来源: Laya3.0_api 发布时间: 20231115