大约有 656 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(365) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(19) laya_api(5) Laya2.0_api(4)
...eSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 (图1)
来源: Laya2.0_文档 发布时间: 20210715
...影机指向角色 camera.transform.lookAt(monkey.transform.position,new Vector3(0,1,0)); //获取动画组件 var ani:Animator = monkey.getComponent(Laya.Animator) asAnimator; //播放攻击状态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果...
来源: Laya2.0_文档 发布时间: 20210715
...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 (图1)
来源: Laya2.0_文档 发布时间: 20210715
...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; ``` 然后来看下效果。 (图1)
来源: Laya2.0_文档 发布时间: 20210715
...的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D有没有夜晚灯光照明效果实现的内置方法? 引擎有没有管理或访问系统...
来源: Laya_社区 发布时间: 20170926
...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...
来源: Laya_社区 发布时间: 20170428
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...
来源: Laya2.0_文档 发布时间: 20210715
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...
来源: Laya2.0_文档 发布时间: 20210715
...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...
来源: Laya2.0_文档 发布时间: 20210715
...number Returns void shadowFourCascadeSplits get shadowFourCascadeSplits(): Vector3 set shadowFourCascadeSplits(value: Vector3): void Defined in laya/d3/core/light/DirectionLight.ts:42 四级级联阴影分割比例,X、Y、Z依次为其分割比例,Z必须大于Y,Y必须大于X。 Returns Vector3 De...
来源: Laya3.0_api 发布时间: 20231115