大约有 400 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
... 场景渲染配置介绍 ###### *version :2.7.0beta Update:2020-6-11* ### Scene3D概述 场景即为LayaAir引擎的3D世界容器,用于呈现游戏的3D画面和加载各种3D元素,游戏中的摄像机,灯光,人物,物品等都需要放到场景中才能展示出画面,相当...
来源: Laya2.0_文档 发布时间: 20210714
...) at Sprite3D.__proto._activeHierarchy (laya.core.js:13784) at Scene3D.__proto._activeHierarchy (laya.core.js:13784) at Scene3D.__proto._processActive (laya.core.js:13765) 附件 : --> 2019-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20190418
...来自: constructor() { super(); Laya.timer.once(1,this,()=> { Laya.Scene3D.load('LayaScene_Main/Conventional/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene); })); }); } 这样的加载一定包异常,不延时直接在构造函数里,执行加...
来源: Laya_社区 发布时间: 20190719
... Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChil...
来源: Laya3.0_文档 发布时间: 20251010
...源拷贝到项目的资源目录下,那么在项目中可以直接用 `Scene3D.load()` 方法加载或预加载。 参考以下代码,因为变色太慢我们调整了速度,效果如(图1)。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/materialScene/Conventional/...
来源: Laya2.0_文档 发布时间: 20210715
...源拷贝到项目的资源目录下,那么在项目中可以直接用 `Scene3D.load()` 方法加载或预加载。 参考以下代码,因为变色太慢我们调整了速度,效果如(图1)。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/materialScene/Conventional/...
来源: Laya2.0_文档 发布时间: 20210715
...复下 2019-05-01 1 0 分享 微博 QZONE 微信 Zong 赞同来自: Laya.Scene3D.load("LayaScene_scene1/Conventional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene); })); 加载代码 2019-03-13 0 0 分享 微博 Q...
来源: Laya_社区 发布时间: 20190313
...味的1.7.16到出的场景,理论上,2.0,使用就挂…… Laya.Scene3D.load("LayaScene_Map/Map.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); })); 附件 : --> Lay...
来源: Laya_社区 发布时间: 20200707
...= this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Mai...
来源: Laya2.0_文档 发布时间: 20210714
...private mat1: Laya.BlinnPhongMaterial; private newScene: Laya.Scene3D; private arr: any; constructor() { super(); this.arr = []; this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; ...
来源: Laya_社区 发布时间: 20201120