大约有 699 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
Laya_社区(471) Laya2.0_文档(66) Laya3.0_api(43) Laya_示例(42) Laya3.0_文档(33) Laya2.0_api(29) laya_api(15)
...typescript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGP...
来源: Laya2.0_文档 发布时间: 20210714
...javascript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGP...
来源: Laya2.0_文档 发布时间: 20210715
...一下我给你写的案例,你是不是使用的方式不对 public var scene:Scene3D; public var camera:Camera; public function SkyBoxSample1() { Laya3D.init(0, 0); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); //Laya.stage.on(Event.RIGHT_MOUSE_...
来源: Laya_社区 发布时间: 20181017
...shSprite3D(Laya.Mesh.load("fish/denglongyu/denglongyuANI-denglongyu.lm")); scene.addChild(fish); var fishmaterial = new Laya.StandardMaterial(); //漫反射贴图 fishmaterial.diffuseTexture = Laya.Texture2D.load("fish/denglongyu/denglongyu1.jpg"); fish.meshRender.material = fishmaterial; fish.trans...
来源: Laya_社区 发布时间: 20170918
...。以下的代码节选自GameUI.js。 ```typescript //添加3D场景 var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))) as Laya.Camera; camera.transform.translate(new Laya.Vec...
来源: Laya2.0_文档 发布时间: 20210714
...动也不动的 export default class GameUI { //宣告場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0...
来源: Laya_社区 发布时间: 20200917
...浏览器播放mp3出现The AudioContext was not allowed to start. laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 请问下加载TFF字体要怎么加载呢? IDE1.7.8 json图集加载问题 微信小游戏中访问带空格的文件出错 ...
来源: Laya_社区 发布时间: 20180118
...有如下报错,并且黑屏 01-25 20:35:11.988 6022-6038/? E/LayaBox: JCSceneCmdDispath::_rendercmd_addChild error can't find the node3d id=-1 2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 dfklegend...
来源: Laya_社区 发布时间: 20180126
...的代码节选自GameUI.js。 ```typescript //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0...
来源: Laya2.0_文档 发布时间: 20210715
...ULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.0)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, f...
来源: Laya_社区 发布时间: 20170515