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

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

511. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 71%]

...mg():void { var texture:Laya.Texture = Laya.loader.getRes(this.name); this.graphics.fillTexture(texture,0,0,256,256,"repeat"); // this.texture = texture; } 这样设置 没什么效果~~ 设置那个Canvas也没有效果 2019-03-16 0 0 分享 微博 QZONE 微信 178*****216 赞同来自: 请问解...

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

512. drawToCanvas无法截取到有子元素。 [ 71%]

... const texture = new Laya.Texture(htmlCanvas); const sp = new Sprite(); sp.graphics.drawTexture(texture); this.shot.addChild(sp);对,是可以的。当时drawToCanvas的第一个参数设置小了,没看到后面的元素。 这里还有一个问题: const sp1 = new Laya.Image(); sp1.skin = 'b...

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

513. laya.ui.ComboBox_API3.0 [ 71%]

... UIComponent ComboBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior itemRender mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom button cacheAs centerX ...

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

514. laya.ui.RadioGroup_API3.0 [ 71%]

...hy UIGroup RadioGroup Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs cent...

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

515. 鼠标交互-双指缩放(多点触控) [ 71%]

...00, h = 300; this.sp = new Sprite(); Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { con...

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

516. 请教个问题(UI相关):有个区域180*180像素,我想给他弄个边框(2px solid #ccc)或背景色,我要用那个UI组件呢? [ 71%]

...sprite 绘制一个矢量图的方块背景。 加边框可以用矢量图 graphic 画一个。 或者让美术做一个漂亮的边框, 或者用发光滤镜。 2018-06-29 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Thylx 相关问...

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

517. 图形的扇形 [ 71%]

...复 想个名字好烦呀! 赞同来自: 层级 Images Sprite Pie imgSp.graphics.clear(); imgSp.graphics.drawPie(501,501,501,0,70,""); 2018-12-11 0 0 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 自己回复一个 然后给自己的回复设置最佳 2018-11-13 0 1 分享 微博 QZONE 微...

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

518. 纹理平铺怎么做 [ 71%]

... 提交 3 个回复 king 赞同来自: cuixueying 、李政666 、Ace1024 Graphics   fillTexture 2017-02-07 3 0 分享 微博 QZONE 微信 李政666 赞同来自: Ace1024   2019-04-23 1 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 通过上面说的或在ide里通过filltwxture都可以实...

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

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

...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

520. laya.ui.Tab_API3.0 [ 71%]

...Hierarchy UIGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs cent...

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