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

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

341. laya.d3.webxr.core.WebXRInputManager_API3.0 [ 70%]

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

342. 在Unity中导出拖尾系统(ActionScript-3D基础(AS3)-LayaAir3D之拖尾系统) [ 70%]

...原本示例代码,去掉了示例代码的旋转摄像机 //加载拖尾 Sprite3D.load('LayaScene_tst/Conventional/Sphere.lh',Handler.create(this,function(sp:Sprite3D):void{ //将加载的拖尾添加给示例盒子 box.addChild(sp); //为了体现效果,我们移动盒子和摄影机观察效果...

来源: Laya2.0_文档 发布时间: 20210715

343. 播放动画(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 70%]

...动播放。我们要怎么控制动画的播放呢? LayaAir 3D引擎的Sprite3D类提供了 `getComponent()` 方法来获取模型上的组件。带动画的模型在加载创建时引擎默认赋予了Animator动画组件,因此我们可以获取它,参考以下代码。 ```typescript //获...

来源: Laya2.0_文档 发布时间: 20210715

344. 你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 [ 70%]

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

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

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

346. Unity导出插件导出的模型中Transform值有误 [ 70%]

...:let colliderItem = this._rootNode.getChildByName("XCD_zhazhiji") as Laya.Sprite3D; console.log(colliderItem.transform.localRotationEuler);得出结果: 附上导出以后ls源文件截图:   另外这个模型有点特殊,这个节点(XCD_zhazhiji)的旋转是不影响模型本身旋转的,它的...

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

347. 导入缩放过带有MeshCollide时出错,Cannot read property 'setLocalScaling' of undefined [ 69%]

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

348. 3d对象使用addChild后localPosition没有变化 [ 69%]

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

349. Laya.loader.create 加载的中途断网 简直是灾难 [ 69%]

...后再用load下载这些关联文件,最后使用的时候就用 laya.sprite3D.load去创建该3d对象,或者在下完关联文件的时候,用 laya.sprite3D.load 创建一次3d对象 ,然后其他地方用的时候就可以直接 laya.loader.getRes()获取了   这是我目前的一个...

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

350. 音频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

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