大约有 3,790 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0084 秒)
Laya_社区(3244) Laya2.0_文档(198) Laya3.0_api(102) Laya3.0_文档(95) Laya2.0_api(82) Laya_示例(44) laya_api(25)
...rite3D(20,"right"); let pixelleft = new PixelLineSprite3D(20,"left"); this.scene.addChild(rightControl); this.scene.addChild(leftControl); this.scene.addChild(pixelright); this.scene.addChild(pixelleft); webXRInput.bindMeshNode(leftControl,WebXRInput.HANDNESS_LEFT); webXRInput.bindMeshNode(rightCont...
来源: Laya3.0_文档 发布时间: 20240910
...新的3D场景时,引擎会自动添加一个主摄像机 Main Camera 在Scene3D节点下。当然也还可以添加更多的摄像机。当我们如图2-1所示,选中主摄像机时,Scene窗口中会出现一个Camera Preview窗口,用来显示主摄像机所看到的视野,这样方便...
来源: Laya3.0_文档 发布时间: 20240910
...mat.albedoTexture = videoNode.videoTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问题,包括微信浏览器,出问题的是在2D场景中在微信浏览器不能播...
来源: Laya_社区 发布时间: 20230825
...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建...
来源: Laya2.0_文档 发布时间: 20210715
...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建...
来源: Laya2.0_文档 发布时间: 20210715
...用Cannon.js** - 1.创建盒型MeshSprite3D ```typescript var box = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))); ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody = box.addComponent(CannonRigidbody3D); ``` - 3.设置碰撞器形状 ```typescrip...
来源: Laya2.0_文档 发布时间: 20210715
..., Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp) { var layaMonkey2 = scene.addChild(sp); layaMonkey2.transform.localScale = new Laya.Vector3(4, 4, 4); ...
来源: Laya_社区 发布时间: 20211009
...t SkyBox.__proto._render (http://127.0.0.1:55942/game/code.js:74089:17) at Scene.__proto._renderScene (http://127.0.0.1:55942/game/code.js:81177:9) at Camera.__proto._renderCamera (http://127.0.0.1:55942/game/code.js:91842:9) at Scene.__proto.renderSubmit (http://127.0.0.1:55942/game/code.js:81631:4...
来源: Laya_社区 发布时间: 20180307
...log与所需要用到该Dialog的场景管关联起来。回到初始场景Scene,在Scene2D的属性设置面板中,增加一个自定义组件脚本。添加如下代码,实现鼠标点击后,弹出Dialog页面: const { regClass, property } = Laya; @regClass() export class NewScript exten...
来源: Laya3.0_文档 发布时间: 20240910
...37732) at Function.FrustumCulling.renderObjectCulling (laya.d3.js:6487) at Scene.__proto._preRenderScene (laya.d3.js:29274) at Camera.__proto._renderCamera (laya.d3.js:39685) at Scene.__proto.renderSubmit (laya.d3.js:29827) at WebGLContext2D.__proto.submitElement (laya.webgl.js:5915) at WebGLContext...
来源: Laya_社区 发布时间: 20180724