大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...:string,atlas:boolean,atlasPath?:string){ (atlas===void 0)&& (atlas=false); this['_url']=url=Laya.URL.formatURL(url); if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json"; ...
来源: Laya_社区 发布时间: 20180615
...this,onLoaded)); } private function onLoaded():void { var texture:Texture=Laya.loader.getRes("walk.png"); //计算好UV,创建新的texture var texEnd:Texture=Texture.create(texture,240,248,120...
来源: Laya_社区 发布时间: 20160506
...图 private bg:Laya.Sprite; constructor(){ super(); this.init(); } init():void{ this.bg = new Laya.Sprite() this.bg.loadImage("res/background.png") this.addChild(this.bg) } }/** * Game */ class Game { constructor(){ Laya.init(768,1136); //设置适配模式 Laya.stage.scaleMode = "showall"; //设置...
来源: Laya_社区 发布时间: 20160804
.../monkey2.png',Handler.create(this,onLoaded)) } private function onLoaded():void { var texture:Texture=Loader.getRes('res/apes/monkey2.png'); var sp:Sprite=new Sprite(); var matrix:Matrix=new Matrix(); matrix.rotate(Math.PI/4); matrix.translate(150,100); sp.graphics.drawTexture(texture,0,0,texture.wi...
来源: Laya_社区 发布时间: 20170414
...ttp://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void { var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ...
来源: Laya_社区 发布时间: 20170831
...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 富文本下划线绘制bug 打包成微信小游戏,图像压...
来源: Laya_社区 发布时间: 20170821
...entional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene); })); 加载代码 2019-03-13 0 0 分享 微博 QZONE 微信 Zong 赞同来自: 断点调试显示clip.version = "LAYAANIMATION:04" 2019-03-14 0 0 分享 微...
来源: Laya_社区 发布时间: 20190313
...0 function onGotoAndStop(armature: any, time: number, index: number = 0): void { var player = armature.player; time /= player.playbackRate; // 根据速率得出准确的单位时间 // 停留的时间必须小于总时间 if (time >= 0 && time <= play...
来源: Laya_社区 发布时间: 20181115
...ore.js:18186:8) at loop CFFish的init方法如下 public init(type:string):void{ this.type = type } 2018-04-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Apple 赞同来自: console.log(fish) 输出的是什...
来源: Laya_社区 发布时间: 20180404
... */ public static function setTextRightToLeft():void { var style:Object; style = Browser.canvas.source.style; style.display = "none"; style.position = "absolute";...
来源: Laya_社区 发布时间: 20180313