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

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

921. [求助]无法使用loader预先加载 [ 55%]

...re = Laya.loader.getRes("res/mainpage/title.png");             if(titleT==null){                 trace("none");             } }   加载成功后纹理是空的 2017-10-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

922. 2D物理-复合碰撞器 [ 55%]

....frameLoop(1, this, this.addMiniBox); } addMiniBox() { let box = this.box; if (this.count >= this.totalBox) { return; } let sp = new Laya.Sprite(); Laya.Laya.stage.addChild(sp); sp.x = box.x; sp.y = box.y; sp.addComponent(Laya.RigidBody); let collider = sp.addComponent(Laya.BoxCollider); collider.wi...

来源: Laya2.0_示例 发布时间: 20251219

923. 关于嵌入div [ 55%]

...,function(){             Browser.__init__();             if (!Browser._container){                 Browser._container=Browser.createElement("div");                 Browser._container.id="layaContainer";                 Browser.document.body.appen...

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

924. 有人遇到GetType 的问题吗? laya2.0 [ 55%]

...function(a) { let ba=0; while(true){ ba = this.m_moveBuffer.indexOf(a,ba); if(ba<0)break; this.m_moveBuffer[ba] = null } } ; 2020-11-21 0 0 分享 微博 QZONE 微信 Leon 赞同来自: 遇到过,后面直接在'GetType' 那里加了非空判断 2019-04-08 0 1 分享 微博 QZONE 微信 与你...

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

925. 关于webGL下遮罩效率问题 [ 55%]

...1, null, drawMask); var index:int = 0; function drawMask():void { index++; if(index > 72) index = index-72; var angle:int = index*5; spr.mask.graphics.drawPie(0,0,100,0,angle, "#ffffff"); } 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

926. Dialog限制拖动区域有什么方法 [ 55%]

...     var point:Point = this.getMousePoint();             if (_dragArea.contains(point.x, point.y)) this.startDrag();             else this.stopDrag();         } 找到这段代码,改引擎,做判断,如果要出边界就stopDrag 2018-07-19 1 1 分享 微...

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

927. 更新LayaNative0.9.15需要注意的问题: [ 55%]

...的构造函数,代码如下: public function GraphicsAni() { super(); if (Render.isConchNode) { this["drawSkin"] = function(skin:*):void { skin.transform || (skin.transform = Matrix.EMPTY); __JS__("this._addCmd([skin])"); this.setSkinMesh&&this.setSkinMesh( skin._ps, skin.mVBData, skin....

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

928. localToGlobal和AS3不一样? [ 55%]

...目标已经AddChild到舞台才有效果。     翻进去看到这句:if (!_displayedInStage || !point) return point;。。。醉了= =!~ 2017-02-27 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 是的,你只有addChild到舞台才有效果! 2017-02-27 0 0 分享 微博 QZONE 微...

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

929. List表单renderHandler问题 [ 55%]

... args:Array = null, once:Boolean = true):Handler {             if (_pool.length) return _pool.pop().setTo(caller, method, args, once);             return new Handler(caller, method, args, once);         }   2018-07-04 1 1 分享 微博 QZONE 微信 为什么被折叠...

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

930. 注册函数里面 事件侦听函数的执行域 的详解 [ 55%]

...• 2016-12-02 11:36 1. this.btn_Login.on(Laya.Event.CLICK, null, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个函数,...

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