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

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

61. CameraMoveScript.as在哪儿下载群里的有错 [ 80%]

...veScript() { } override public function _initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.scene.currentCamera; 没...

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

62. ReferenceError: Loading_fly is not defined [ 80%]

...享 微博 QZONE 微信 apeCom 赞同来自: var Loading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfi...

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

63. 一个场景,两个线形碰撞体,出错 [ 79%]

...is.label = (this.label || "ChainCollider");             return super.getDef();         }   改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 下个版本修复,    chaincollider的  方法    override protected function getDef():* {  ...

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

64. HTMLDIVElement设置innerHTML时报错 [ 79%]

...ion(){ if (this._width)return this._width; return this.contextWidth; },[b]_super.prototype._$set_width[/b]);此次出问题的版本为/** *获取对象的宽 */ __getset(0,__proto,'width',function(){ if (this._width)return this._width; return this.contextWidth; },[b]function(value){ var changed=fal...

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

65. 绘制图形的BUG [ 79%]

...yBox extends Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.t...

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

66. 官方的示例贴上来,怎么没反映啊 [ 79%]

官方的示例贴上来,怎么没反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(...

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

67. [临时解决]bug?加载sk问题 [ 79%]

...概就是下面这样 // Test01是ui的逻辑类 var Test01 = (function (_super) {     function Test01() {         Test01.__super.call(this);// 调试用,看看过了多少帧,才就绪         this.numPreloadCalls = 0; // 执行预加载         this.preload(this.onP...

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

68. 【简单跑酷--JS版】---Lv.6 终篇 [ 78%]

..._VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy"; //速度类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.ini...

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

69. Laya api 中可能的bug [官方来看] [ 77%]

...n(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z排序,更改此值,则会按照值的大小对同一...

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

70. laya中js 如何实现Sprite类继承 [ 77%]

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