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

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

101. Graphics下如果只绘制了一个对象,其cmds是null [ 92%]

Graphics下如果只绘制了一个对象,其cmds是null 如下面示例,Graphics上必须绘制2个或2个以上的对象,cmds才有值,只绘制一个对象时cmds为null; 当只绘制了一个对象时我也想获取cmds的值怎么办,官方能不能升级一下,拜托   附件 :...

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

102. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 92%]

...ic static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL.formatURL(url); if (url == _tMusic) { if ...

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

103. 多个对象添加点击事件, 舞台上面移除掉所有对象,并且置为null [ 92%]

...对象添加点击事件, 舞台上面移除掉所有对象,并且置为null 如题:多个对象添加点击事件, 舞台上面移除掉所有对象,并且置为null,这个事件还存在吗? 我退出到大厅,在进入游戏又注册点击事件,对效率会有影响吗? 2018-11-0...

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

104. 加载view时Laya.loader为null [ 92%]

加载view时Laya.loader为null 2019-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 【飞飞】 赞同来自:   2019-06-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...

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

105. Uncaught TypeError: Cannot read property 'load' of null [ 92%]

Uncaught TypeError: Cannot read property 'load' of null 开放域工程 报这个错误 2018-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你的报错只是提示有个对象的load...

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

106. 运行报错: TypeError: Cannot read property 'load' of null [ 92%]

运行报错: TypeError: Cannot read property 'load' of null 运行报错: TypeError: Cannot read property 'load' of null 为何使用Laya.loader.load都会报错 附件 : --> fishHunter.zip 2019-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

107. 为什么预加载音频之后,再播放还是会重复请求下载呢? [ 92%]

... 如题,预加载资源:   Laya.loader.load("Laya/Assets/bgm_low.mp3",null,null,Laya.Loader.SOUND); Laya.loader.load("Laya/Assets/dead.mp3",null,null,Laya.Loader.SOUND); Laya.loader.load("Laya/Assets/gameover.mp3",null,null,Laya.Loader.SOUND); Laya.loader.load("Laya/Assets/speedup.mp3",null,nul...

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

108. this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 [ 92%]

this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 this.btClose1.on(Laya.Event.CLICK,null,this.close); 这句代码报错  附件 : --> 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyin...

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

109. Label 在设置。text时 底层this._tf为null 父节点又存在 还是偶发 [ 92%]

Label 在设置。text时 底层this._tf为null 父节点又存在 还是偶发 在设置Label.text属性情况下。Label存在可以log。设置的text string 也无问题。就是laya.ui.js 中this._tf为null导致 设置text失败。LayaAir2.13 版本。 附件 : --> 2022-08-23 添加评论 免...

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

110. laya.display.Text [ 92%]

...显示下划线。Text  underlineColor : String下划线的颜色,为null则使用字体颜色。Text  valign : String 表示文本的垂直显示方式。 取值: "top": 居顶部对齐显示。 "middle": 居中对齐显示。 "bottom": 居底部对齐显示。 Text viewport : Rectan...

来源: Laya2.0_api 发布时间: 20190513