大约有 3,861 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3313) Laya2.0_文档(198) Laya3.0_api(102) Laya3.0_文档(97) Laya2.0_api(82) Laya_示例(44) laya_api(25)
...自带的Demo发布打开都失败 提示 error]Failed to load: test/TestScene.scene _endLoad @ laya-9e66188d9c.core.js:1 laya-9e66188d9c.core.js:1 Fail to load: test/TestScene.scene laya-9e66188d9c.core.js:1 Uncaught Can not find scene:test/TestScene.scene laya-9e66188d9c.core.js:1 资源版本清...
来源: Laya_社区 发布时间: 20200216
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); Laya.Scene3D.load('/1/res/SampleScene.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; l...
来源: Laya_社区 发布时间: 20200611
...转了角度,子节点也会同步产生变化。 3D节点的根节点是Scene3D,2D节点的根节点是Scene2D。2D与3D节点之间不可以混合形成父子层级关系。 二、层级面板的通用操作 2.1 创建节点 可以创建的3D节点有: Sprite3D(这是一个空节点); ...
来源: Laya3.0_文档 发布时间: 20251011
...灯实时阴影的示例代码和效果: ```typescript receaveRealShadow(scene3d:Scene3D):void { var childLength:number = scene3d.numChildren; for(var i:number = 0;i<childLength;i++) { var childSprite:Node = scene3d.getChildAt(i); if(childSprite instanceof MeshSprite3D) { //设置精灵接收阴...
来源: Laya2.0_文档 发布时间: 20210715
...一致 2019-04-30 0 1 分享 微博 QZONE 微信 ccUcc 赞同来自: Laya.Scene3D.load("LayaScene_game_scene/Conventional/game_scene.ls",Laya.Handler.create(this,function (scene) { Laya.stage.addChild(scene); } 我这样导入场景,不new相机,就是在unity运行时什么...
来源: Laya_社区 发布时间: 20190430
...this.camera = 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(): vo...
来源: Laya_社区 发布时间: 20190621
...容: Uncaught TypeError: Cannot read property 'length' of null at Scene3D.__proto._activeHierarchy (laya.core.js:13721) at Scene3D.__proto._onAdded (laya.core.js:13770) at Scene3D.__proto._setParent (laya.core.js:13486) at Scene3D.__proto._setParent (laya.core.js:18511) ...
来源: Laya_社区 发布时间: 20190124
...特效报重复加载 export default class TransformDemo{ private scene:Laya.Scene3D; private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private rotate:Laya.Vector3 = new Laya.Vector3(0, 1, 0); ...
来源: Laya_社区 发布时间: 20190509
...refabsModel/hanbao.lh"); goldNode = this.scene_3d.addChild(sp); goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() *...
来源: Laya_社区 发布时间: 20200326
...一个3d人物。 我在unity里用laya插件导出了ls文件,然后将scene3d直接addChild到2dView里,但是这样3d场景完全挡住了2dView。 可以让scene3d的背景透明吗,或者应该用其它方法来实现? 2019-01-08 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20190108