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

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

2481. 版本管理swf找同名的Json文件发现找不到 [ 49%]

...: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

2482. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 49%]

...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

2483. 获取sprite对象的 width和height为0 [ 49%]

...图 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

2484. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 49%]

.../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

2485. skin加载url资源不会刷新 [ 49%]

...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

2486. 求问sprite放大后,graphics绘制的图像位置偏移 [ 49%]

...urves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 Event.MOUSE_WHEEL 如何获取鼠标滚轮是放大开始缩小 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 富文本下划线绘制bug 打包成微信小游戏,图像压...

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

2487. Uncaught unknown animationClip version. [ 49%]

...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

2488. 设置骨骼动画停留在某一帧/某一个时间点 [ 49%]

...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

2489. Laya.Pool.getItemByClass 闪退 [ 49%]

...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

2490. 求教 label.text之类的文本,能否支持从右到左的显示?或者有没有什么解决方案,现有阿拉伯文、维语的需求 [ 49%]

...      */         public static function setTextRightToLeft():void         {             var style:Object;             style = Browser.canvas.source.style;             style.display = "none";             style.position = "absolute";...

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