大约有 189 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0038 秒)
...cene:Scene3D):void { Laya.stage.addChild(scene); var camera:Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210714
...imer contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...
来源: Laya3.0_api 发布时间: 20231115
...ate(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210715
...ate(this, function(scene) { Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); })); ```
来源: Laya2.0_文档 发布时间: 20210715
...取了粒子作为Sprite3D,这个可以获取到this.bow = this.scene3D.getChildByName("Bow") as Laya.Sprite3D; 然后我拿不到他的粒子系统,var par: Laya.ShurikenParticleSystem= this.bow.getComponent(Laya.ShurikenParticleSystem);结果是空的,求教一下! 2018-12-18 添加评论 ...
来源: Laya_社区 发布时间: 20181218
...你的问题,可以直接通过var就可以获取,name还需要通过getChildByName获取。
来源: Laya_社区 发布时间: 20180901
...建对象没问题,第二次怎么就是获取对象了。。。获取用getchildbyname 这种方式 2020-03-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Ame 相关问题 laya2.0加载3d场景报错Uncaught TypeError: Cannot read ...
来源: Laya_社区 发布时间: 20200309
...olliderShape是可以用吗,我这样添加之后报错 let sp3d = scene.getChildByName("GameObject").getChildByName("dimian_5"); let rigidBody = sp3d.addComponent(Laya.Rigidbody3D) let shape = new Laya.MeshColliderShape() shape.mesh = sp3d.meshFilter.sharedMesh; rigidBody.colliderShape = shape; ...
来源: Laya_社区 发布时间: 20180816
...lone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName ...
来源: Laya3.0_api 发布时间: 20231102
...擎bug 百分百 复现 1.7.20beta有bug,帧属性面板打不开 使用getChildByName()无法得到子节点对象 tree mouseHandler 怎么获取条目 分享:LayaAir下如何获取图集下的小图资源? 问题状态 最新活动: 2020-01-08 21:34 浏览: 1795 关注: 3 人 Laya_Aaron ...
来源: Laya_社区 发布时间: 20200107