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

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

351. 请问如何使我的自定义类UIDropBox继承Laya.Sprite[ 75%]

请问如何使我的自定义类UIDropBox继承Laya.Sprite? var UIDropBox = (function () { var Sprite = Laya.Sprite; var Text = Laya.Text; function UIDropBox() { UIDropBox.super(this); this.txt = this.getTextFeild(); this.txt.y = 50; this.txt.text = 'aasassa'; console.log(this.addChild);//undefi...

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

352. 如何获取Sprite上用graphics.drawTexture绘制的texture? [ 75%]

如何获取Sprite上用graphics.drawTexture绘制的texture? 如何获取Sprite上用graphics.drawTexture绘制的texture? 如定义为faceImage的Sprite,我用faceImage.graphics.drawTexture绘制图片哦,也有正常显示了,但我通过faceImage.texture却是null。我需要拷贝该...

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

353. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然重合?? [ 75%]

...然重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是...

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

354. 2.2.0 stat sp统计 [ 75%]

2.2.0 stat sp统计 2.2.0 同一个页面。隐藏一个控件后,sprite数没有改变,删除了才有改变。是bug吗? 附件 : --> 2019-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron ...

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

355. laya.ui.FrameClip [ 75%]

...lic class FrameClipInheritanceFrameClip FrameAnimation AnimationPlayerBase Sprite Node EventDispatcher Object 关键帧动画播放类 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示...

来源: laya_api 发布时间: 20170422

356. 有没有办法直接把一个 sprite 直接转换成一张贴图,在使用 渲染目标的情况下 [ 75%]

有没有办法直接把一个 sprite 直接转换成一张贴图,在使用 渲染目标的情况下 有没有办法直接把一个 sprite 直接转换成一张贴图,在使用 渲染目标的情况下,因为我看了案例,渲染目标还要摆摄像机,有点复杂。 2017-07-12 ...

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

357. 同一个Animation,创建多个实例只能显示一个(测试项目已上传) [ 75%]

...例只能显示一个(测试项目已上传) 描述: 创建了10个sprite,每个sprite里面有一个animation,最终只有第一个sprite的animation能够显示。(跟官方微信飞机结构类似)  问题截图:   代码:for (var i:int=0;i<10;i++){ var p:wheel=Pool.getItem...

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

358. sprite 的getBounds()方法怎么回事,我怎么获取出来啊 [ 75%]

sprite 的getBounds()方法怎么回事,我怎么获取出来啊 其中list是一个view.list是一个列表可以获取getBounds(),但是test1和test2两张图片怎么回事,宽带都能打印出来就是获取到getBounds(),获取出来都是0,这到底怎么回事   附...

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

359. 怎么获取手机相册内容 [ 75%]

... 提交 1 个回复 Laya_Aaron 赞同来自: package { import laya.display.Sprite; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; public class Main { public function Main() { //初始化引擎 Laya.init(500,500);//初始化引擎 var skins:Array = [ "res/button-1.png" ]...

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

360. localToGlobal和AS3一样? [ 75%]

localToGlobal和AS3一样? 举个例子:     var sp:Sprite = new Sprite();     var p:Point = new Point();     sp.pos(500,600);     p.setTo(10,10);     p = sp.localToGlobal(p); 结果:p坐标还是10,10。AS3上是510,610。 2017-02-27 添加评论 免费帖 --> 分享 微博 QZ...

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