大约有 1,719 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1434) Laya3.0_api(93) Laya2.0_文档(63) Laya3.0_文档(41) Laya_示例(36) laya_api(32) Laya2.0_api(19) Laya2.0_示例(1)
...core/WebXRInputManager.ts:18 Methods bindMeshNode bindMeshNode(meshSprite: Sprite3D, handness: string): void Defined in laya/d3/WebXR/core/WebXRInputManager.ts:113 绑定输入设备渲染节点 Parameters meshSprite: Sprite3D 渲染挂点 handness: string 设备名称left/right Returns void bindRay...
来源: Laya3.0_api 发布时间: 20231115
...原本示例代码,去掉了示例代码的旋转摄像机 //加载拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果...
来源: Laya2.0_文档 发布时间: 20210715
...动播放。我们要怎么控制动画的播放呢? LayaAir 3D引擎的Sprite3D类提供了 `getComponent()` 方法来获取模型上的组件。带动画的模型在加载创建时引擎默认赋予了Animator动画组件,因此我们可以获取它,参考以下代码。 ```typescript //获...
来源: Laya2.0_文档 发布时间: 20210715
...his, this.resetPosition); resetPosition(): void { var aniMonkey: Laya.Sprite3D = scene.getChildByName("monkey") as Laya.Sprite3D; aniMonkey.transform.position = new Laya.Vector3(math,math,math); } Laya.Tween.to(aniMonkey.transform.position, { x: math1, y: aniMonkey.transform.position.y, z:...
来源: Laya_社区 发布时间: 20180117
...function CameraMoveScript() { } 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.cu...
来源: Laya_社区 发布时间: 20170218
...:let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; console.log(colliderItem.transform.localRotationEuler);得出结果: 附上导出以后ls源文件截图: 另外这个模型有点特殊,这个节点(XCD_zhazhiji)的旋转是不影响模型本身旋转的,它的...
来源: Laya_社区 发布时间: 20190320
...) at PhysicsCollider.__proto._setActive (laya.core.js:7072) at Sprite3D.__proto._activeHierarchy (laya.core.js:13777) at Sprite3D.__proto._activeHierarchy (laya.core.js:13784) at Scene3D.__proto._activeHierarchy (laya.core.js:13784) at Scene3D.__proto._processActive (la...
来源: Laya_社区 发布时间: 20190418
...wner * @param child */ static addChildHelper(owner: Laya.Node, child: Laya.Sprite3D) { let position = child.transform.position.clone() let rotation = child.transform.rotation.clone() let scale = child.transform.getWorldLossyScale().clone() owner.addChild(child) child.transform.position = position ch...
来源: Laya_社区 发布时间: 20200819
...后再用load下载这些关联文件,最后使用的时候就用 laya.sprite3D.load去创建该3d对象,或者在下完关联文件的时候,用 laya.sprite3D.load 创建一次3d对象 ,然后其他地方用的时候就可以直接 laya.loader.getRes()获取了 这是我目前的一个...
来源: Laya_社区 发布时间: 20180726
...lass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.SoundNode }) public sound: Laya.SoundNode; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): vo...
来源: Laya3.0_文档 发布时间: 20251010