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

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

81. http无响应 [ 75%]

...独用在其它文件也是没有反应,  var LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, t...

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

82. 请问怎么制作一个layabox js版本的加载效果 [ 75%]

...享 微博 QZONE 微信 gaowei2024 赞同来自: var Loadings=(function(_super) { function Loadings(){ Loadings.super(this); var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; Laya.init(1024, 600,WebGL); Laya.stage.alignV ...

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

83. 新手,如何看懂官方代码? [ 75%]

...官方代码? 例如:官方脚本CameraMoveScript.js CameraMoveScript.super(this);这句什么意思?super这东西哪来的?我要怎么查到它的用法? this.lastMouseX = NaN;为什么用this,而不是var lastMouseX = NaN; CameraMoveScript.prototype._update = function (state){...}像...

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

84. 射线BUG [ 75%]

...我用的是1.7.1JS版的function MousePickingScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya.PhasorSpriter3D(); this.cam...

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

85. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 75%]

...代码(function () { /** * 游戏入口 */ function RunGame(){ RunGame.__super.call(this); this.init(); } //RunGame 是一个显示对象 继承此 Sprite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = functio...

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

86. 继承Scene没有onEnable [ 75%]

...in();  class tt extends Laya.Node{     constructor(){         super();     }     public onAwake():void{         console.log(1111);     } }   2.继承Sprite 执行后会有onAwake         let t = new tt();         Laya.Scene.root.addChild(t);    ...

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

87. LayaAir下如何分包? [ 75%]

...S:ForcedCompile]*/ yinzhigang12 • 2017-05-27 09:37 坑爹啊,少了个 super(); sawitch • 2017-06-12 11:43 @yinzhigang12:哪里加super();呀?我的分包也遇到这个问题,测试demo包运行没问题,我新建的项目就不行 aubrey0622 • 2017-09-09 10:27 @yinzhigang12:哪里加...

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

88. layaMaxUI.ts的自动生成代码bug [ 75%]

...dule ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainSceneUI); } 期待生成SceneBase, 结果仍然生成Laya.SceneBase     其他关联链接: https://ask.la...

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

89. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 75%]

...ist":["comp/button.png"],"loadList3D":[]};         constructor(){ super()}         createChildren():void {             super.createChildren();             this.createView(GameSceneuiUI.uiView);         }     }     REG("ui.GameSceneuiUI",GameS...

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

90. 升级2.0以后,部分浏览器的兼容性很差 [ 74%]

...ent • 2019-08-28 18:27 class TestSceneUI extends Scene { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl.changeText(&qu...

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