大约有 428 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0037 秒)
Laya_社区(163) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(58) Laya_示例(28) laya_api(14) Laya3.0_文档(8) Laya2.0_示例(5)
...dAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(); var tempet:Animation...
来源: Laya_社区 发布时间: 20170819
...0, 0.1, 10)); vrCamera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; vrCamera.addComponent(VRCameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var earth = scene.a...
来源: Laya_示例 发布时间: 20241119
...他碰撞体也不显示 this.sp = new Laya.Sprite(); let rb = this.sp.addComponent(Laya.RigidBody); let polygonCollider4 = this.sp.addComponent(Laya.PolygonCollider); polygonCollider4.points = "429,1094,433,1094,440,1094,442,1094,446,1094,448,1094,450,1094,454,1094"; 创建2D多边形碰撞体后...
来源: Laya_社区 发布时间: 20221124
...,主要是报undefine错误,或者cls的错误,请问到底如何用addComponent添加控制脚本? 附件 : --> 2019-06-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 泡茶用咖啡 赞同来自: 试...
来源: Laya_社区 发布时间: 20190602
....addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(L...
来源: Laya2.0_文档 发布时间: 20210715
....addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript = camera.addComponent(L...
来源: Laya2.0_文档 发布时间: 20210715
... { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilter.sharedMesh; bulletCollider.colliderShape = bulle...
来源: Laya_社区 发布时间: 20190308
...amera2.normalizedViewport = new Laya.Viewport(0.5, 0.0, 0.5, 0.5); camera2.addComponent(CameraMoveScript); camera2.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera2.sky = s...
来源: Laya_示例 发布时间: 20241119
...var camera: Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Vector3(8.937199060699333, 61.364798067809126, -66.77836086472654); //将灯光移动脚本添加到摄像机上 var moveScript: LightMoveScript = camera.ad...
来源: Laya2.0_文档 发布时间: 20210714
...一个lsani动作,我想播放这个动作要怎么写? 我想给角色addComponent一个Animation发现不行。如果addComponent一个Animator,然后把动作载入成AnimationClip,addClip给Animator会崩 附件 : --> role_2.zip 2017-11-30 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20171130