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

大约有 868 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)

221. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 76%]

...ender (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:16444:20)   at Scene3D.__proto._renderScene (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:34333:124)   at Camera.__proto.render (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:44132:9)   at Scene3D.__proto.renderSubmit (file:/...

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

222. 基于Cannon.js的物理系统(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 76%]

...** - 1.创建盒型MeshSprite3D ```typescript var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody: CannonRigidbody3D = box.addComponent(CannonRigidbody3D); ``` -...

来源: Laya2.0_文档 发布时间: 20210714

223. Oppo加载.ls资源错误 [ 76%]

Oppo加载.ls资源错误 Laya.loader.create("res/scenes/LayaScene_game/game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { consol...

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

224. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...入,否则不是文本域。默认为false 1.3 脚本控制TextInput 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将TextInput拖入到其暴露的属性入口中。下面给出一个示例代码,实现脚本控制TextInput: const { regClass, property } = L...

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

225. U3D导出模型和动画,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom [ 76%]

...ender (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:16444:20)   at Scene3D.__proto._renderScene (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:34333:124)   at Camera.__proto.render (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:44132:9)   at Scene3D.__proto.renderSubmit (file:/...

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

226. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 76%]

...缘也有衰减现象。 ```typescript //聚光灯 this.spotLight = this.scene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方...

来源: Laya2.0_文档 发布时间: 20210715

227. 如何在3d场景中添加文字 [ 76%]

...家名称 */ private txtName:Laya.Text; //场景的相机 public otherGameScene:Laya.Camera; private _outPos:Laya.Vector3 = new Laya.Vector3(); this.txtName = new Laya.Text(); this.txtName.color = "#FFFFFF"; this.txtName.text = this.playerName; this.txtName.fontSize = 18; this.txtName.font = "Arial"...

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

228. 正交摄像机裁剪问题 [ 76%]

...就会出现,而sp1离摄像机比sp更远缺不影响。 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 550))); camera.transform.translate(new Laya.Vector3(250, 1, 0)); var rotation = new Laya.Quaternion; Laya.Quaternion.lookAt(camera.position, new Laya.Vector3(0, 0, 0), camera.up, rotation...

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

229. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 76%]

...era.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果碰撞到物体 if (this.outHitResult.succeeded) { //删除碰撞到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; cons...

来源: Laya2.0_文档 发布时间: 20210715

230. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 76%]

...era.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果碰撞到物体 if (this.outHitResult.succeeded) { //删除碰撞到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; cons...

来源: Laya2.0_文档 发布时间: 20210715