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

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

61. 2.6物理问题 [ 91%]

...数值,球和地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCo...

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

62. 我竟然被射线检测这个小功能给难了一天了 [ 91%]

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

63. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 91%]

...modifications. */ import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; var REG: Function = Laya.ClassUtils.regClass; export module ui.test { export class TestSceneUI extends Laya.Scene {         public scoreLbl:Laya.Label;         public tipLbll:Laya.Label; cons...

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

64. LayaBox进阶之UI管理类 [ 91%]

...IManagerexport class UIManager { private mainContent: Laya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; } }mainContent 为默认添加到的层级, GameScence 为UI管理器默认场景 uiList放所有加载进来的...

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

65. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 90%]

...闭b的时候,a依然存在。怎么做? 我在ide中做了一个基础scene 1,一个dialog a 和一个dialog b。 从1,点击,弹出a;没问题; 从a,点击,弹出b,没问题。 但是我需要在操作b的时候,a一直存在。这样我可以从b关闭后,继续操作a。 ...

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

66. 微信小游戏报错 the .lh file root type must be Scene [ 90%]

微信小游戏报错 the .lh file root type must be Scene 引擎版本1.7.17beta private screen3DPath: string = "res/layaScene/xiangsuqiche.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.s...

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

67. Cannot read property 'toDefault' of undefined报错是什么原因 [ 90%]

...undefined报错是什么原因 主要代码如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SK...

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

68. 高级应用-基于物理渲染 [ 90%]

...ULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/PBRScene/Demo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraM...

来源: Laya_示例 发布时间: 20240930

69. 材质-BlinnPhong-反射贴图 [ 90%]

...ULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 1.3, 1.8)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true,...

来源: Laya_示例 发布时间: 20240930

70. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 90%]

...;         this.tmpVector = new Laya.Vector3(0, 0, 0);         this.scene = Laya.stage.addChild(new Laya.Scene3D());         //初始化照相机         let camera = this.scene.addChild(new Laya.Camera(0, 0.1, 100));         camera.transform.translate(new Laya.Vector3(0, 6, 9.5))...

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