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

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

1. 加载.lh文件 运行后黑屏 无法显示 [ 100%]

... import GameConfig from "./GameConfig";  class Main {     //private scene:Laya.Scene3D;     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0);     constructor() {         this._upVector3 = new Laya.Vector3(0, 1, 0);         Laya3...

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

2. 针对2.0.0 beta5 setLoadingPage 做增强 [ 99%]

...法 */ export default class LoadPage { constructor(url = null) { this._loadScene = null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this._loadScene && url === this._loadScene.url) return le...

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

3. this.scene.physicsSimulation.rayCastAll 报错 [ 99%]

this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...

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

4. rigidBody.applyForce 物体不会移动 [ 98%]

...动也不动的 ​ export default class GameUI { //宣告場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0...

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

5. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 98%]

...  //预加载所有资源         var resource = [{url: "Box/LayaScene_JJF/Conventional/JJF.lh"}];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //创建场景         var scene = Laya.stage.addChild(new Laya.Scene3D()); ...

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

6. Cannot read property 'rayCast' of undefined [ 98%]

Cannot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let conf...

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

7. 发射射线检测不到,物体有包围盒 [ 97%]

...     this.hitResult=new Laya.HitResult();                  Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){             // HelperApp.a = scene3d;             //加载完成获取到了Scene3d             scene3d.name...

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

8. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 97%]

...   //预加载所有资源         let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"];         Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete));     }     onComplete(){         //创建场景         let scene = Laya.stage.a...

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

9. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 96%]

...,内存中场景及引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.cam...

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

10. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 96%]

...信 maoxiaolu 赞同来自: import { ui } from "./../ui/layaMaxUI"; import Scene3D = Laya.Scene3D; import Sprite3D = Laya.Sprite3D; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 *...

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