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

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

51. 微信飞机大战报错 [ 81%]

...(_stream_readable.js:[...]   GameInfo.js代码: var GameInfo = (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super)...

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

52. 2.0 Beta3版本中,runtime脚本的的问题 [ 81%]

...ne; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MonkeyPag...

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

53. laya 2.0 bug onEnable 分离模式节点没有创建 [ 81%]

...加载要时间,如果第二次使用 构造函数因为必须先执行super();才能写其他代码  super();  this.once("onViewCreated",this,this.loader_over); 但在执行 super()时 判断JSON已经加载完毕,直接就触发onViewCreated但这时候还没有监听事件 导致后面监...

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

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

...享 微博 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

55. 关于js继承类class的参数问题 [ 81%]

... QZONE 微信 w1114367261 赞同来自:  * @example      * (function (_super){      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.La...

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

56. dialog的popup方法不会关闭其他弹窗 [ 81%]

...LoginView extends ui.loginUI { normalDialog: NormalDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") });  }  showDialog(con...

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

57. 重写X Y在android studio里运行会变成00 [ 80%]

...ayaTest15.zip 2018-02-26 0 0 分享 微博 QZONE 微信 qian 赞同来自: super._x = xxx 改成super.x= xxx 不要直接改_x没有通知到native   2018-02-26 0 1 分享 微博 QZONE 微信 185*****914 - 一些用LAYABOX做的练习小游戏http://iuhigi.cn/ 赞同来自: 我习惯用sprite.p...

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

58. viewportPointToRay产生的射线始终有偏差,是为什么? [ 80%]

...3(0, 0, 0), new Vector3(0, 0, 0)); public _start(state:RenderState):void { super._start(state); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.element...

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

59. laya中js 如何实现Sprite类继承 [ 80%]

...his.Role.pos(100, 200);   Role.js基础代码: var Role = ( function ( _super ) { function Role () { Role._super.call(this); /***一些基础信息***/ } Laya.class( Role , "Role" , Sprite ); var _proto_ = Role.prototype; /******/ return Role; })(); 2018-10-12 添加评论 免费帖 --> 分享 ...

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

60. 加载UI为什么总是加载白底 [ 80%]

...= new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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