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

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

411. 代码如何取到UI节点下的EffectAnimation然后Play [ 71%]

...个回复 w1114367261 赞同来自: EffectAnimation也可以设置相应的var或name的,你可以根据这些获取播放 2018-04-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ggg333 相关问题 预设怎么在代码中使用 点...

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

412. 看一下这是什么问题,运行报错 [ 71%]

看一下这是什么问题,运行报错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下   附件 : --> 2018-02-06 添加评论 免费...

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

413. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 71%]

...gColor = '#0000ff';     Laya.stage.scaleMode = Stage.SCALE_SHOWALL;   var tiledMap;     var viewRect;     var mLastMouseX = 0;     var mLastMouseY = 0;      var mX = 0;     var mY = 0;      (function()     {         createMap();          Laya.stage...

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

414. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 71%]

...) && (priority = 1); (cache === void 0) && (cache = true); var itemCount = arr.length; var loadedCount = 0; var totalSize = 0; var items = ; var success = true; for (var i = 0; i < itemCount; i++) { var item = arr[i]; if ((typeof item == 'string')) item = {url: item, type: type, s...

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

415. 调用Sprite的drawToCanvas怎么返回的是uint8array [ 71%]

...drawPicture():*         {                          var _canvas:* =this.drawToCanvas(this.width,this.height,0,0);             var base64:*  = _canvas._canvas.source.toDataURL();                         return base64;          } 附件 : --> 2...

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

416. 关于graphics._saveToCmd的问题 [ 71%]

...= new Laya.Sprite();         Laya.stage.addChild(this.sp);         var arr:Array<any> = [this.sp,1,2,3];         this.sp.graphics._saveToCmd(this.test1,arr);     }     test1(x,y,args):void     {         console.log("args[0]"+args[0]+",args[1]"+args[1]+",args[2]"+args[...

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

417. 我看到这段话后,我 [ 71%]

...ction(value){         this._dataSource=value;         for (var prop in this._dataSource){             if (this.hasOwnProperty(prop)&& !((typeof (this[prop])=='function'))){                 this[prop]=this._dataSource[prop];             ...

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

418. 两个不同UI级别的物体如何进行碰撞检测 [ 71%]

...动: 2018-01-22 16:59 浏览: 727 关注: 2 人 youka • 2018-01-22 18:00 var rectangle1 = new Laya.Rectangle(负的世界坐标X,负的世界坐标Y, 52, 52) 这样不对吗?

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

419. Laya不能加载外部图片,原生canvas却可以? [ 71%]

...    Your browser does not support the canvas element. </canvas>  var c=document.getElementById("myCanvas"); var cxt=c.getContext("2d"); var img=new Image() img.src="http://pic.qqtn.com/up/2016-11 ... 3B%3B img.onload = function(){     cxt.drawImage(img,0,0); }   在原生canvas支持...

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

420. 如何在AS里写JS代码? [ 71%]

如何在AS里写JS代码? var fm_TT = 666; var fmxh:String = "FengMian_"+bl.xuhao; __JS__("ga('send','timing','WWWKKK','Load',fm_TT,fmxh)");MouseCount.max.js:16145 Uncaught ReferenceError: fm_TT is not defined   请问,如何在AS里写JS?为啥会not defined 2017-02-06 添加评论 免费...

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