大约有 1,753 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0087 秒)
Laya_社区(1324) Laya3.0_api(178) Laya2.0_文档(87) laya_api(60) Laya2.0_api(40) Laya3.0_文档(37) Laya_示例(24) Laya2.0_示例(3)
... EventDispatcher instantiate(original:Sprite3D, parent:Node = null, worldPositionStays:Boolean = true, position:Vector3 = null, rotation:Quaternion = null):Sprite3D[static] 创建精灵的克隆实例。 Sprite3D isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 Ev...
来源: Laya2.0_api 发布时间: 20190513
...加预制体到场景中 this.scene.addChild( monkey ); monkey.transform.position = new Laya.Vector3(-28.9354,0.3,-63.20264); } ); } } 运行效果如动图3-9 (动图3-9) 四、预加载预制体 在开发过程中,我们会通过大量创建预制体的方式来实现各种功能,因此预...
来源: Laya3.0_文档 发布时间: 20241014
...加预制体到场景中 this.scene.addChild( monkey ); monkey.transform.position = new Laya.Vector3(-28.9354,0.3,-63.20264); } ); } } 运行效果如动图3-9 (动图3-9) 四、预加载预制体 在开发过程中,我们会通过大量创建预制体的方式来实现各种功能,因此预...
来源: Laya3.0_文档 发布时间: 20251105
...创建后如图8-1所示。 (图8-1) Texture:设置纹理图像。 Position:纹理相对于Sprite对象的位置。 Size:纹理的尺寸,默认使用百分比,也可以取消百分比勾选,采用像素值设置。 Percent:当勾选时,纹理的尺寸为Sprite对象尺寸的百...
来源: Laya3.0_文档 发布时间: 20251010
...Update(): void { // 获取世界位置 let worldPos = this.owner.transform.position; console.log(`Spine3D世界坐标: ${worldPos.x}, ${worldPos.y}, ${worldPos.z}`); // 获取屏幕坐标(用于点击检测等) let screenPos = this.spine3D._baseRenderNode.shaderData.getVector(Sprite3D.WORLDMATRI...
来源: Laya3.0_文档 发布时间: 20260203
...:Point 把stage的全局坐标转换为本地坐标。 Sprite gotoAndStop(position:*):void 切换到某帧并停止 AnimationPlayerBase hasListener(type:String):Boolean 检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 EventDispatcher hitTestPoint(x:Number, y:Num...
来源: laya_api 发布时间: 20170422
...持层的序号导出,开发者也可以在LayaAir引擎中设置Layer Position(位置) 支持(包括:X、Y、Z) Rotation(旋转) 支持(包括:X、Y、Z) Scale(缩放) 支持(包括:X、Y、Z) 对比上面的图和表格,我们看到Tag是不支持的。Static与La...
来源: Laya3.0_文档 发布时间: 20251010
...ableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D POSITIONSCALE : int[static] ShuriKenParticle3D ROLANGULARVELOCITYCONST : int[static] ShuriKenParticle3D ROLANGULARVELOCITYCONSTMAX : int[static] ShuriKenParticle3D ROLANGULARVELOCITYCONSTMAXSEPRARATE : int[static] Sh...
来源: Laya2.0_api 发布时间: 20190513
... EventDispatcher instantiate(original:Sprite3D, parent:Node = null, worldPositionStays:Boolean = true, position:Vector3 = null, rotation:Quaternion = null):Sprite3D[static] 创建精灵的克隆实例。 Sprite3D isMouseEvent(type:String):Boolean 检测指定事件类型是否是鼠标事件。 Ev...
来源: laya_api 发布时间: 20170929
...io.autoplay = value; } get autoplay() { return this._audio.autoplay; } get position() { if (!this._audio) return 0; return this._audio.currentTime; } get duration() { if (!this._audio) return 0; return this._audio.duration; } stop() { this.isStopped = true; Laya.SoundManager.removeChannel(this); thi...
来源: Laya_社区 发布时间: 20200103