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

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

611. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 46%]

...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; ``` 然后来看下效果。 ![](img/1.png)(图1)

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

612. 播放动画(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 46%]

...影机指向角色 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

613. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 46%]

...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

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

614. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 46%]

...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

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

615. 为什么说没有​ playByFrame方法 [ 45%]

...的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D有没有夜晚灯光照明效果实现的内置方法? 引擎有没有管理或访问系统...

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

616. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 45%]

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

617. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 45%]

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

618. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 45%]

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

619. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 44%]

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

620. laya.d3.core.light.DirectionLight_API3.0 [ 44%]

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