大约有 1,210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...贴图 一个3d模型,怎么调用一个png里面不同位置的贴图。var maJiang:MeshSprite3D = new MeshSprite3D(Mesh.load("3d/maJiang/asdsad-default015.lm")); scene.addChild(maJiang);默认是加载的UV贴图里面的第一张贴图,怎么去掉用其他位置的图片。我的贴图是附...
来源: Laya_社区 发布时间: 20170311
看一下这是什么问题,运行报错 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
...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
...) && (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
...动: 2018-01-22 16:59 浏览: 727 关注: 2 人 youka • 2018-01-22 18:00 var rectangle1 = new Laya.Rectangle(负的世界坐标X,负的世界坐标Y, 52, 52) 这样不对吗?
来源: Laya_社区 发布时间: 20180122
...drawPicture():* { var _canvas:* =this.drawToCanvas(this.width,this.height,0,0); var base64:* = _canvas._canvas.source.toDataURL(); return base64; } 附件 : --> 2...
来源: Laya_社区 发布时间: 20170401
...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
...= 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
... 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
如何在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