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

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

1081. 什么情况下需要使用typeAs()方法替代as运算符 [ 57%]

...替代as运算符? 2015-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自:    不需要强转的时候as可以直接去掉,在Flash项目里如果有使用as运算符强转会返...

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

1082. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 57%]

... 创建一个Main.js入口类,编写代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya...

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

1083. Cannot read property 'events' of undefined [ 57%]

...defined 附件 : --> 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 皮 赞同来自:   2018-10-09 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

1084. 离线使用LayaIDE进行APP构建 [ 57%]

...的文件在哪里 2018-04-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你在主入口里吧校验更新的代码注释了就不会在跟外网校验版本更新了,这样应该就解...

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

1085. laya如何用audio播放音频? [ 57%]

laya如何用audio播放音频? 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...

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

1086. laya.display.Sprite_API3.0 [ 57%]

...ch Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受...

来源: Laya3.0_api 发布时间: 20231115

1087. 使用protobuf在微信工具解析时报错 [ 57%]

...atest.zip wxgame.zip 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 hj 赞同来自: 能提供一下可以复现的demo吗 2018-10-09 0 1 分享 微博 QZONE 微信 橘子蛋卷ice 赞同来自: 请问...

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

1088. 循环监听按钮,如何进行传参和接受参数 [ 57%]

...peBox.getChildByName('btn' + i) as Laya.Image;               console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); }   按钮事件 private onBtnClick(event:Laya.Event): void {         let b = event.currentTarget as Laya.Image; console.log('onClickLevel > ' + b.skin...

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

1089. 怎么快速找到需要的知识 [ 57%]

...打飞机的例子里,有这样一句  laya.timer.frameloop(1,this,this,onloop) 我想知道laya.timer.frameloop的具体用法和含义,但是在技术文档和api里都找不到关于frameloop的详细解释。在社区里也只有关于frameloop的一些疑问,请问要怎么才能找到la...

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

1090. 如果在编辑模式使用自己定义的基类? [ 57%]

...DE2.2.0 附件 : --> 2019-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 不吃香菇 赞同来自: 如果不能这样使用的话 有什么其他好办法让我所有的dialog继承一个基类? 2019-11-2...

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