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

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

11. 这个写法是什么意思,能否解释一下,谢谢 [ 94%]

...s.bg2 = null;         //初始化父类         BackGround.__super.call(this);         this.init();     }     //注册类 BackGround     Laya.class(BackGround, "BackGround", laya.display.Sprite);   问题: 1.Laya.class(BackGround, "BackGround", laya.display.Sprite); ...

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

12. 有关继承类的问题 [ 94%]

有关继承类的问题 //建筑类 var Building = (function (_super){ function Building(params) { Building.super(this); } Laya.class(Building,"Building",_super); return Building; })(Laya.Sprite)   //床 var Bed = (function (_super){ function Bed(params) { Bed.super(this); } Laya.class(Bed,"Bed",...

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

13. 续飞机大战 [ 94%]

...); var gameInstance = new Game();BackGround.jsvar BackGround = (function (_super) { function BackGround() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this...

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

14. 使用js压缩工具报错 [ 92%]

...错的功能。   ERROR:invalid property id   interface:function(name,_super){ Laya.__package(name,{}); var ins=Laya.__internals; var a=ins[name]=ins[name] || {self:name}; if(_super) { var supers=_super.split(','); a.extend=[]; for(var i=0;i<supers.length;i++){ var nm=supers[i]; ins[nm]=ins[n...

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

15. 请问UI之间的场景切换要怎么写 [ 91%]

请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundMan...

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

16. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 91%]

...d var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _proMask.scaleX = 0; _progress.mask = _proMask; _...

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

17. Uncaught TypeError: Game.super is not a function [ 91%]

Uncaught TypeError: Game.super is not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

18. 对话框点击空白处无法关闭 [ 90%]

....7.15这是我在编辑模式发布的一个对话框var testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.creat...

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

19. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 90%]

...CollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {         super(collisionGroup, canCollideWith);         this._enableProcessCollisions = false;     }     _addToSimulation() {         this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith); ...

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

20. LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 [ 90%]

LoginView.super(this);这样调用的父类的构造函数的方法,不能用吗 LoginView.super(this);这是在教学视频里用的方法,好像不能用了。 这些layaair中特别的语法规则在哪里统一可以找到 var LoginView = function () {     LoginView.super(this);     t...

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