大约有 332 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0067 秒)
Laya_社区(194) Laya2.0_文档(67) Laya_示例(44) Laya3.0_api(15) Laya3.0_文档(10) laya_api(1) Laya2.0_api(1)
...jects_D/LayaPrjs/2017_FilesLayouterManager/bin/h5/Main.max.js:47184:20) at Camera.__proto._renderCamera (file:///D:/Projects_D/LayaPrjs/2017_FilesLayouterManager/bin/h5/Main.max.js:55676:10) at Scene.__proto.renderSubmit (file:///D:/Projects_D/LayaPrjs/2017_FilesLayouterManager/bin/h5/Main.max.js:47...
来源: Laya_社区 发布时间: 20170626
...egClass() export class Main extends Laya.Script { @property( { type : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>...
来源: Laya3.0_文档 发布时间: 20241014
...te3D; //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Laya.Vector3(0,1,0)); //获取动画组件 var ani = monkey.getComponent(Laya.Animator) as Laya.Animator; //播放攻击状态 ani.play("attack"); //等待动画播放完...
来源: Laya2.0_文档 发布时间: 20210715
...tionLight.shadowMode = ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. directionLight.shadowCascadesMode = ShadowCascadesMode.NoCascades; // Set shadow normal ...
来源: Laya2.0_文档 发布时间: 20210715
...ight.shadowMode = Laya.ShadowMode.SoftLow; // Set shadow max distance from camera. directionLight.shadowDistance = 3; // Set shadow resolution. directionLight.shadowResolution = 1024; // Set shadow cascade mode. directionLight.shadowCascadesMode = Laya.ShadowCascadesMode.NoCascades; ``` 开启地面...
来源: Laya2.0_文档 发布时间: 20210715
...lh"); //加载到场景 scene.addChild(monkey); //让摄影机指向角色 camera.transform.lookAt(monkey.transform.position,new Vector3(0,1,0)); //获取动画组件 var ani:Animator = monkey.getComponent(Laya.Animator) asAnimator; //播放攻击状态 ani.play("attack"); //等待动画播放完成...
来源: Laya2.0_文档 发布时间: 20210715
...se) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3D>Util3d.getRes(this.sEnemyRes) pNewScene.addChild(pBull); pNewScene.addChild(pEnemy); let tPosBull = Util...
来源: Laya_社区 发布时间: 20200720
... uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4 v_wpos; void main() { float _NoiseSpeedX = 1.0; float _Noi...
来源: Laya_社区 发布时间: 20190923
...ion.FLASHLIGHT" /> <uses-permission android:name="android.permission.CAMERA"/> <!-- 获取地理位置的权限,可选 --> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&...
来源: Laya_社区 发布时间: 20170722
...-16 0 3 分享 微博 QZONE 微信 138*****175 赞同来自: 我是把lh的camera信息删掉了,就不会报错。后面那个Hero20.lh就是没删除前的 Hero3D.rar 2017-08-17 0 1 分享 微博 QZONE 微信 138*****175 赞同来自: 新版本的加载一个模型动画文件(.lh),其中包...
来源: Laya_社区 发布时间: 20170428