大约有 440 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya_社区(169) Laya3.0_api(79) Laya2.0_api(73) Laya2.0_文档(58) Laya_示例(28) laya_api(14) Laya3.0_文档(14) Laya2.0_示例(5)
...Box.textureCube = Laya.TextureCube.load("skyBox/skyCube.ltc"); this.camera.addComponent(VRCameraMoveScript); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); // this.phasorSpriter3D = new Laya.Ph...
来源: Laya_社区 发布时间: 20170323
...or3(0, 1, 0)); camera.clearColor = new Laya.Vector3(0.3, 0.3, 0.5); camera.addComponent(CameraMoveScript); //创建点光[左下角]------------ 这个不生效,除非注释掉light2 var light1 = scene.addChild(new Laya.PointLight()); light1.transform.translate(new Laya.Vector3(-10,3,0));//移动...
来源: Laya_社区 发布时间: 20180103
...erableMap: Map>, skeletonMap: Map) { var animator: Animator = animatorRoot.addComponent(Animator); // animator 添加 渲染节点 队列 renderableMap.forEach(renderableArray => { //@ts-ignore animator._renderableSprites.push(...renderableArray); }); // 添加 animator clip // 在 Unity 中使用...
来源: Laya2.0_文档 发布时间: 20210715
...y(); const rigidBody: Laya.Rigidbody3D = this.basketball.addComponent(Laya.Rigidbody3D); const sphereShape: Laya.SphereColliderShape = new Laya.SphereColliderShape(0.3); rigidBody.colliderShape = sphereShape; rigidBody.mass = 10...
来源: Laya_社区 发布时间: 20230220
...D; var skinAni: Laya.SkinAnimations = meshSprite3D.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations; skinAni.templet = Laya.AnimationTemplet.load(this.skinAniUrl[0]); skinAni.player.play(); } ...
来源: Laya_社区 发布时间: 20180724
... camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(1, -1, 0); var dude = scene.addChil...
来源: Laya_示例 发布时间: 20260303
...raRenderData addAllLayers addChild addChildAt addChildren addCommandBuffer addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getCom...
来源: Laya3.0_api 发布时间: 20231115
....rotate(new Laya.Vector3( -15, 0, 0), true, false); camera.addComponent(CameraMoveScript); //添加光照 var directionLight= new Laya.DirectionLight(); this.scene.addChild(directionLight); direct...
来源: Laya_社区 发布时间: 20190509
...添加Spine3D渲染器组件到3D精灵节点上 this.spine3D = this.owner.addComponent(Laya.Spine3DRenderer); this.spine3D.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine3D.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine3D.play("idle", false); // 播...
来源: Laya3.0_文档 发布时间: 20260203
...et sprite = ownerSprite.addChild(new Laya.Sprite3D()); let filter = sprite.addComponent(Laya.MeshFilter); let render = sprite.addComponent(Laya.MeshRenderer); // 设置相同的材质与网格 filter.sharedMesh = mesh; render.sharedMaterial = this.batchMat; //随机位置 sprite.transform.localPosit...
来源: Laya3.0_文档 发布时间: 20251010