• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 3,790 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0084 秒)

1001. WebXR · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...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

1002. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...新的3D场景时,引擎会自动添加一个主摄像机 Main Camera 在Scene3D节点下。当然也还可以添加更多的摄像机。当我们如图2-1所示,选中主摄像机时,Scene窗口中会出现一个Camera Preview窗口,用来显示主摄像机所看到的视野,这样方便...

来源: Laya3.0_文档 发布时间: 20240910

1003. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 60%]

...mat.albedoTexture = videoNode.videoTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问题,包括微信浏览器,出问题的是在2D场景中在微信浏览器不能播...

来源: Laya_社区 发布时间: 20230825

1004. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 60%]

...体 ```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

1005. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 60%]

...体 ```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

1006. 基于Cannon.js的物理系统(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 60%]

...用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

1007. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 60%]

...,             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

1008. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 60%]

...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

1009. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...log与所需要用到该Dialog的场景管关联起来。回到初始场景Scene,在Scene2D的属性设置面板中,增加一个自定义组件脚本。添加如下代码,实现鼠标点击后,弹出Dialog页面: const { regClass, property } = Laya; @regClass() export class NewScript exten...

来源: Laya3.0_文档 发布时间: 20240910

1010. 加载 unity3D导入的旧版蒙皮动画时出现错误 [ 59%]

...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