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

大约有 555 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

361. laya.ui.TextArea [ 64%]

...c Properties Show Inherited Public Properties PropertyDefined By align : String 表示文本的水平显示方式。 取值: "left": 居左对齐显示。 "center": 居中对齐显示。 "right": 居右对齐显示。 Label alpha : Number透明度,值为0-1,默认值为1,表示不...

来源: laya_api 发布时间: 20170929

362. 资源加载后的 回调 [ 64%]

...次问的loadanimation的问题,后面的参数怎么写?里面的 atlas:string,写成"res/atlas/ani_img/explore/a.json"不行. loadAnimation(url:String, loaded:Handler = null, atlas:String = null):Animation 2017-11-06 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

363. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 64%]

...lic class MsgMgr { /**共享画布类型**/ public static var SHAREDRESIZE:String = "sharedresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init...

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

364. Laya.Pool用法 [ 64%]

...rivate static _dic: Laya.Dictionary;         public static PROTO_HEAD: string = "proto_Head";         public static PROTO_BINARY_REQUEST: string = "proto_BinaryRequest";         public static PROTO_PARAMS: string = "proto_ParamsProto";         public static PROTO_DOUBLE_VLAUE: string...

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

365. laya.ui.AutoBitmap [ 64%]

...cs drawLine(fromX:Number, fromY:Number, toX:Number, toY:Number, lineColor:String, lineWidth:Number = 1):void 绘制一条线。 Graphics drawLines(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列线段。 Graphics drawPath(x:Number, y:Number, paths:Array, ...

来源: laya_api 发布时间: 20170929

366. l龙骨动画内存上升 [ 63%]

...       */         private function playDragonBonesAnimation(url:String,dragronX:Number,dragronY:Number,parent:Sprite,isLoop:Boolean):void{             var tem:Templet = new Templet();             var longgu:Skeleton;             tem.loadAni(url);          ...

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

367. laya.resource.Texture2D [ 62%]

...ture  getPixels():Uint8Array 返回图片像素。 Texture2D  load(url:String, complete:Handler):void[static] 加载Texture2D。 Texture2D  loadImageSource(source:*, premultiplyAlpha:Boolean = false):void 通过图片源填充纹理,可为HTMLImageElement、HTMLCanvasElement、HTMLVideoElement...

来源: Laya2.0_api 发布时间: 20190513

368. Image设置skin的Bug [ 62%]

... * 设置皮肤资源。      */     protected setSource(urlstring, img: any = null): void {         if (url === this._skin && img) {             this.source = img             this.onCompResize();         }     }    ...

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

369. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 62%]

.../ export default class Main extends ui.mainUI { /**地图链接 */ MAP_URL:string = 'res/tiled/map.json';  /**地图 */ map: Laya.TiledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); thi...

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

370. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 62%]

...t = new Browser.window.Blob([byte.buffer], { type: "image/png" }); var url:String = Browser.window.URL.createObjectURL(blob);//创建一个url对象; ////我们先用第一种方式显示图片到舞台; var sp:Sprite = new Sprite(); sp.loadImage(url); Laya.stage.addChild(sp);//添加到舞台 }...

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