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

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

1781. 生成的粒子特效怎么设置colorComponentInter无效? [ 71%]

生成的粒子特效怎么设置colorComponentInter无效? function UILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAsse...

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

1782. List滚动到底部事件 [ 71%]

...888 赞同来自:     list.scrollBar.on('end',list,scrollBarHandler)   function scrollBarHandler(){         if(this.scrollBar.value == this.scrollBar.max){                 var that = this;                 setTimeout(function(){                      that.addItem(".....

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

1783. 发布微信小游戏声音问题 [ 71%]

...   Invalid value used as weak map key;at audioContext.oncanplay callback function TypeError: Invalid value used as weak map key Invalid value used as weak map key;at audioContext.onended callback function TypeError: Invalid value used as weak map key 2018-01-14 添加评论 免费帖 --> 分享 微...

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

1784. laya.media.VideoNode_API3.0 [ 71%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

来源: Laya3.0_api 发布时间: 20231115

1785. timer无法用clear清除的BUG [ 71%]

...p函数用this绑定时,clear无法清除 ,clearAll可以清除 public function startLoop() {       Laya.timer.loop(2000,this,this.onLoop.bind(this)); }   private function onLoop():void {     if(this.stop){         Laya.timer.clear(this,this.onLoop.bind(this));  //     } } ...

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

1786. TiledMap中的gridWidth|(块的宽度)是哪一部分啊? [ 71%]

...载完成后使用tileWidth和tileHeight获取单块地图的大小private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height),Handler.create(this,onComplete)); } private fun...

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

1787. layaair2.0默认字体设置无效 [ 71%]

...e laya.display.Text#defaultFont          */         public function get font():String {             return _font;         }                  public function set font(value:String):void {             if ((_style as TextStyle).currBitmapF...

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

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

...个版本修复,    chaincollider的  方法    override protected function getDef():* {             if (!_shape) {                 _shape = new window.box2d.b2ChainShape();                 _setShape(false);             }        ...

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

1789. DebugPanel报错 [ 71%]

...nel' does not exist on type 'typeof Laya'.' "Laya.DebugPanel.init is not a function" 2018-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 qian 赞同来自: 版本问题 你这个版本还没有这个工具 ...

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

1790. 我想在动画播放结束后加一个事件,怎么加? [ 71%]

... 赞同来自: geo 监听_ani的完成事件 _ani.on(EVENT.COMPLETE, this, function(){}); 2018-04-28 1 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 谢谢! 2018-05-02 0 0 分享 微博 QZONE 微信 AlexNine 赞同来自: 可以直接在play后面加个回调 function playAni(aniPath,fn=fa...

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