大约有 367 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0047 秒)
...ends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.l...
来源: Laya3.0_文档 发布时间: 20241014
...= 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
...= this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D; this.physics=scene.physicsSimulation; console.log("相机位置",(this.owner.getChildByName("Main Camera") as Laya.Sprite3D).transform.position) } onStart(): void { L...
来源: Laya_社区 发布时间: 20190621
...laya.d3.js:13807) at RenderQueue._render (laya.d3.js:23353) at Scene3D._renderScene (laya.d3.js:24583) at Camera.render (laya.d3.js:13641) at Scene3D.renderSubmit (laya.d3.js:24757) at Context.submitElement (laya.core.js:9341) at Context.flush (laya.core.js:9347) ...
来源: Laya_社区 发布时间: 20200104
..._render (/Users/wuhao/dev2019/moba/moba/bin/libs/laya.d3.js:1549:21) at Scene3D.__proto._renderScene (/Users/wuhao/dev2019/moba/moba/bin/libs/laya.d3.js:33024:110) at Camera.__proto.render (/Users/wuhao/dev2019/moba/moba/bin/libs/laya.d3.js:41870:10) at Scene3D.__proto.renderSubmit (/Users/...
来源: Laya_社区 发布时间: 20190322
...址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Scene3D&name=EnvironmentalReflection))。 ```typescript //设置场景的反射模式(全局有效),场景的默认反射模式也是custom模式 scene.reflectionMode = Laya.Scene3D.REFLECTIONMODE_CUSTOM; //天空盒 Laya.Ma...
来源: Laya2.0_文档 发布时间: 20210715
...址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Scene3D&name=EnvironmentalReflection))。 ```js //设置场景的反射模式(全局有效),场景的默认反射模式也是custom模式 scene.reflectionMode = Laya.Scene3D.REFLECTIONMODE_CUSTOM; //天空盒 Laya.Material.l...
来源: Laya2.0_文档 发布时间: 20210715
...的 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, 0.2); priv...
来源: Laya_社区 发布时间: 20200917
...或者聚光灯的光源会穿透模型 let scene_: Laya.Scene3D = new Laya.Scene3D(); let camera_: Laya.Camera = new Laya.Camera(); let spotLight_: Laya.SpotLight = new Laya.SpotLight(); let cube_: Laya.MeshSprite3D =...
来源: Laya_社区 发布时间: 20200506
...nder (laya.d3.js:1) at RenderQueue._render (laya.d3.js:1) at Scene3D._renderScene (laya.d3.js:1) at Camera.render (laya.d3.js:1) at Scene3D.renderSubmit (laya.d3.js:1) at Context.submitElement (laya.core.js:1) 附件 : --> 2019-10-24 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20191024