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

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

141. fillTexture使用问题 [ 69%]

... static width: number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this....

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

142. Image加载完成后的图片大小重设问题 [ 69%]

... class PlayGame extends ui.PlayGameUI {     constructor() {         super();        init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete));         Laya.stage.on(L...

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

143. dialog弹出显示问题 [ 69%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 super1013 相关问题 请问LayaAir中如何使图片以圆形的方式显示? laya针对页游耗用内存大的问题是如何解决的? 安装layaAirIDE2 ,跟着官网敲hello world 例子,为什么不显示? 加...

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

144. 视频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 69%]

...ty({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load(...

来源: Laya3.0_文档 发布时间: 20251010

145. Laya.stage.on(Laya.Event.DISPLAY,this,this.ddddd); 无法监听到。 [ 69%]

...ya.events.Event; public class AAA extends Sprite { public function AAA() { super(); this.on(Event.DISPLAY,this,onDisplay); } private function onDisplay():void { alert("display"); } } } 2017-02-14 0 0 分享 微博 QZONE 微信 hfeiop12 赞同来自: 已经解决! 2017-02-14 0 0 分享 微博 QZONE...

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

146. 获取Sprite位置问题 [ 69%]

...ss Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Lay...

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

147. laya如何用audio播放音频? [ 69%]

...播放音频? private elentAutio: HTMLAudioElement; constructor(){     super();     this.btn_play.on(Laya.Event.CLICK, this, this.onPlay);     this.elentAutio = <HTMLAudioElement>document.createElement('audio');     this.elentAutio.src="res/10.mp3"; } onPlay():void{     this.elentA...

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

148. UI界面发布后的layaUI.max.all.ts文件里的函数认识 [ 68%]

...界面发布后的layaUI.max.all.ts文件里的函数认识 constructor(){ super()}和 createChildren():void { super.createChildren(); this.createView(ui.login.HeadUI.uiView); } 是先执行constructor()再执行createChildren()吗?constructor()相当于构造函数,createChildren()是构造完...

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

149. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 68%]

... export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 closeDialog(): void...

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

150. Animation提示未定义 [ 68%]

Animation提示未定义 function FarmIndexView() { FarmIndexView.super(this); this.aniCloud = new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微...

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