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

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

141. 2.2.0开始,摄像机的清除标记不起作用 [ 60%]

...除,比如要瞬移角色的时候停止。伤脑壳~~!! 怎么清除graphics画出的图像啊?? Tween.clear(tween) 清除所问题 2.2.0 bata3版本,new Laya.Particle2D 报错 2.2.0: safari浏览器,iphone的谷歌浏览器 遮罩大概率触发黑屏 求助,关于image中的图片...

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

142. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 60%]

...多种做法,而其间差异很有必要知道。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp:Sprite = new Sprite(); sp.graphics.drawRect(0, 0, 100, 100, "#FF0000"); var bounds:Rectangle  = sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` ​ getBounds可以满足多...

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

143. iOS环境浏览器使用mask黑屏 [ 60%]

...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...

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

144. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 60%]

...多种做法,而其间差异很有必要知道。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但...

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

145. sprite怎么移除通过loadimage方法显示的图片? [ 60%]

...请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: sprite.graphics.clear(); 2018-01-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 liner1457387450 相关问题 两个对象new了一个相同的对象,调用第一个...

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

146. Sprite 如何更新图片资源 [ 60%]

...ya_XS 赞同来自: 你需要在切换图片之前先调用下sprite实例.graphics.clear()方法后再用loadinage切换图片即可! 2017-02-11 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 perfect_wo 相关问题 LayaAir3D UnityPlu...

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

147. 关于移动端和PC端画质的问题 [ 60%]

...问题 横屏模式在锁定竖屏的iphone上不能正常显示的问题 graphics alpha 问题 问题状态 最新活动: 2018-08-03 21:13 浏览: 1008 关注: 2 人

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

148. 这里是不是有点问题啊!说错别打我! [ 59%]

...载入场景问题出现在哪呢?? 关于shader中opengl函数问题 graphics alpha 问题 问题状态 最新活动: 2017-10-27 16:39 浏览: 849 关注: 2 人 Monica • 2017-10-27 16:56 好的,多谢反馈,我们会关注下

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

149. 使用发光滤镜后的第一个遮罩效果无效 [ 59%]

...     var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff);         this.txt_pro.displayObject.mask = ui_hpBarMask; 附件 : --> 2022-05-31 添加评论 免费帖 --> 分享 微博 QZONE ...

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

150. 怎样在精灵上加载一张图片 后加载的会覆盖前面的加载 [ 59%]

...复 qian 赞同来自: 需要在切换图片之前先调用下sprite实例.graphics.clear()方法后再用loadinage切换图片即可 2018-02-01 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 oy2419498011 相关问题 请问LayaAir中如...

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