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

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

981. Laya.Handler为什么注册不成功? [ 88%]

Laya.Handler为什么注册不成功? this.scrollView.mouseHandler = Laya.Handler.create(this,this.onScrollMouse) this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种...

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

982. animation动画结束后怎么监听? [ 88%]

...的链接 提交 2 个回复   赞同来自: anifish1.on(Event.COMPLETE,this,complete) function complete(){                             } 你是不是要问这个 2018-10-11 0 1 分享 微博 QZONE 微信 FullyI 赞同来自: 我用这个方法监听动画播放完成,有问题,...

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

983. 播放BGM 的时候 会在laya.core.js 的 16715行 this._audio.play(); 报黄条条 导致打包好的项目卡死 [ 88%]

播放BGM 的时候 会在laya.core.js 的 16715行 this._audio.play(); 报黄条条 导致打包好的项目卡死 播放BGM 的时候 会在laya.core.js 的 16715行 this._audio.play(); 报黄条条 导致打包好的项目卡死 2018-07-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

984. video.on('complete', this, onPlayEnd);视频播完为何不触发“complete”? [ 88%]

video.on('complete', this, onPlayEnd);视频播完为何不触发“complete”? function onPlayEnd(evt:Event){ trace("video complete"); } 为何视频播完不触发呢? http://layaair.ldc.layabox.com ... Video 这里要是可以调试该多好~ 2017-01-16 添加评论 免费帖 --> 分享 微...

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

985. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 88%]

...yFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, th...

来源: Laya2.0_文档 发布时间: 20210715

986. 动态创建img 或 sprite [ 88%]

...创建img 或 sprite let dd = new Laya.Sprite(); dd.graphics.drawTexture(this.img.texture, 0, 0, 750, 1334); dd.x = 50; dd.y = 50; this.addChild(dd);   this.img 绝对不为空,我想用一个sprite来画它,请问什么画(不是拷贝)?   2018-01-24 添加评论 免费帖 --> 分享 ...

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

987. sprite添加texture后,sprite无法触发点击事件? [ 88%]

sprite添加texture后,sprite无法触发点击事件? this.item.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name])); Laya.stage.addChild(this.item);  this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

988. 关于customRender函数不执行的问题 [ 88%]

...于customRender函数不执行的问题 // 保证customRender必定执行 this.frameLoop(1, this, () => { this.graphics.clear(); this.graphics.drawLine(0, 0, 1, 0, '#000'); }); this.customRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webG...

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

989. Warning!,this class[MiniAdpter] already exist: Object {init: } [ 88%]

Warning!,this class[MiniAdpter] already exist: Object {init: } LayaAirIDE 1.7.18Beta任意新建一个微信小游戏2D示例,编译运行,即出现。 2018-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...

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

990. "Background is not defined"怎么会没定义呢???求救 [ 88%]

...自: Game.jsvar Game = (function(){ (function Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res...

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