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

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

1381. 请教Laya.timer.once如何设置回调参数 [ 63%]

...Laya.timer.once如何设置回调参数 看到API文档上描述是 public function once(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 但是照这个写了 Laya.timer.once(800,this,sh,[1,3,4]) 之后,在回调函数sh 里面 收到的不是数组,请...

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

1382. Sprite-屏幕截图 [ 63%]

...e(this,this.onLoaded)); } private createButton(skin: string,name:string,cb:Function,index:number): Button { var btn: Button = new Button(skin,name); Laya.stage.addChild(btn); btn.on(Event.CLICK,this,cb); btn.size(147,55); btn.name = name; btn.right = 10; btn.top = index * (btn.height + 10); return b...

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

1383. Laya 绑定显示内容到骨骼动画 [ 63%]

...阵的方法 //返回变化矩阵     __proto.getResultMatrixByFrame=function(index){         var matrix=this._resultMatrixCache[index];         if(matrix){             return matrix;         }         return this.resultMatrix;     }   2. Bone ...

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

1384. Laya.Pool.getItemByClass 闪退 [ 63%]

...t(type) 调用init方法时候闪退,错误信息是 "fish.init is not a function" "TypeError: fish.init is not a function at Function.CFSprite.reusableFishWithType (file:///Users/heboyce/Desktop/Work/Web/CatchFish/bin/js/common/CFSprite.js:28:14) at GameView.addFinsh (file:///Users/heboyce/Deskto...

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

1385. UI-Tree [ 63%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Box = Laya.Box; var Clip = Laya.Clip; var Label = Laya.Label; var Utils = Laya.Utils; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24"...

来源: Laya_示例 发布时间: 20260106

1386. laya.d3.core.particleshuriken.module.VelocityOverLifetime_API3.0 [ 63%]

...ss with type parameter Constructor Property Method Object literal Variable Function Type alias Enumeration Interface

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

1387. 微信的缓存引擎只支持了图片和声音,其他lh,lm等文件自动缓存时都不支持是缓存的时候有什么问题和难点吗? [ 63%]

...        * @return          */         public static function getFileInfo(fileUrl:String):Object {             return MiniFileMgr.getFileInfo(fileUrl);         }                  /**          * 获取缓存文件列表        ...

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

1388. LayaAir和LayaNative 交互问题 [ 63%]

...ht",a); // 注册手指按下事件 document.addEventListener("touchstart",function(e){ //a=!a;// 实现奇数次打开 偶数次关闭 // b、调用静态函数openlight 参数为a wxRegLogin //Test.call("openlight",a); Test.call("wxRegLogin",a); }); android的:   public class Test {   public s...

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

1389. Panel滚动条滑块位于最下方 [ 63%]

... 设置panel.vscrollBar.value=panel.vscrollBar.max 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img...

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

1390. laya.components.AnimatorPlayState2D_API3.0 [ 63%]

...ontPlay _playAllTime animatorState duration Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Property Enumeration Interface

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