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

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

411. Laya3d下sprite 显示问题 [ 63%]

...mera.renderTarget as Texture; var sp:Sprite = new Sprite(); sp.x = 800; sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying ...

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

412. 关于创建Sprite获取大小 [ 63%]

...ow.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _th...

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

413. 加载-销毁Texture使用的图片资源 [ 63%]

...is.aniFly); //创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.txt.color = "#FF0000"; this.btn.addChild(this.txt); this...

来源: Laya_示例 发布时间: 20260303

414. 加载-销毁Texture使用的图片资源 [ 63%]

...s.aniFly); // 创建按钮 this.btn = new Sprite().size(205, 55); this.btn.graphics.drawRect(0, 0, this.btn.width, this.btn.height, "#057AFB"); this.txt = new Text(); this.txt.text = "销毁"; this.txt.pos(75, 15); this.txt.fontSize = 25; this.txt.color = "#FF0000"; this.btn.addChild(this.txt); this...

来源: Laya2.0_示例 发布时间: 20260303

415. laya.ui.Dialog [ 63%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite  group : String组名称Dialog height : Number[override] 显示对象的高...

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

416. 图片切换后显示两个状态 [ 63%]

...人 赞同来自: 如果是Sprite的话loadImage之前先清理下:myImg.graphics.clear()。 如果是Image,直接设置skin即可,会出现两张图片都显示出来的情况 2017-06-18 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

417. 图片遮罩大小跟设置一致 [ 63%]

.../ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0);           let sp = new Sprite()           sp.graphics.drawRect(0, 0, 50, 50, '#ffff000')           ape.mask = sp })); } })(); 右边的...

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

418. 点击事件疑问 [ 63%]

...要接受鼠标事件 是需要显示设置size的 如果是用sprite的graphic的drawTexture来显示图片 是需要显示设置size 才能接受鼠标事件 是是这样 2017-02-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

419. 画完矢量矩形后如何再改变矩形颜色? [ 62%]

画完矢量矩形后如何再改变矩形颜色? 用graphics.drawRect()方法画矩形,参数设置了矩形颜色,之后我要断改变矩形颜色怎么改? 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

420. 关于Dialog的显示层级问题 [ 62%]

...的灯光显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ graphics alpha 问题 位图字体显示 问题状态 最新活动: 2017-09-14 20:29 浏览: 2508 关注: 5 人 hxj524 • 2017-01-11 10:12 可是用了这个方法后DIALOG原来的带的蒙版遮盖也会消失了 怎么...

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