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

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

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

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

62. iOS环境浏览器使用mask黑屏 [ 78%]

...代码: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

63. 关于WebGL矢量图的遮罩问题 [ 78%]

...Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半部分 mask.graphics.drawLines(0, 0, [100, 150, 150, 150], "#ff0000", 200) // drawPoly在WebGl下遮罩又...

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

64. 节点组件的详细介绍(TypeScript-IDE篇(TS)-设计模式基础) [ 78%]

...带有2D基础组件(2D)、滤镜组件(Filters),绘图组件(Graphics)、物理组件(physics)、UI组件(UI)、公共组件(common),如图1所示。 ![图1](img/1.png) (图1) 在这些组件里,通过继承关系的不同,可以分成组件、UI组件、视图...

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

65. Sprite生成的mask对Sprite作用时显示不正确 [ 78%]

...题   let miniMap = new Laya.Sprite(); miniMap.autoSize = true; miniMap.graphics.drawRect(0,0,100,100, '#000000'); let mapMask = new Laya.Sprite(); mapMask.autoSize = true; mapMask.graphics.drawRect(0,0,miniMap.width,miniMap.height, '#ff0000'); miniMap.mask = mapMask; Laya.stage.addChild(miniMap) 2...

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

66. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 77%]

...代码: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_社区 发布时间: 20191216

67. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...导航网格。未勾选时,该节点会被完全忽略。 Bake From: Graphics是从Sprite的图形数据生成导航网格。例如图2-12所示, (图2-12) Physics是从物理碰撞器数据生成导航网格。例如图2-13所示, (图2-13) MeshRender是从网格数据生成导航...

来源: Laya3.0_文档 发布时间: 20251010

68. 安卓机截图变成黑块,ios和pc没问题 [ 77%]

...色块了private function test():void { var sp1:Sprite = new Sprite(); sp1.graphics.drawRect(0,0,300,200,"#ff0000"); var htmlCanvas:HTMLCanvas = sp1.drawToCanvas(300,200,0,0); Laya.timer.once(1000,this,function():void{ var texture:Texture = new Texture(htmlCanvas); var sp2:Sprite = new Sprite(); sp2...

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

69. 鼠标画线的问题 [ 76%]

... 2018-01-09 0 0 分享 微博 QZONE 微信 qian 赞同来自: 可以使用graphics绘制线条试一下 2018-01-09 0 0 分享 微博 QZONE 微信 fool_tiger 赞同来自: 我是用的graphics这个绘制,刚才说的鼠标位置问题也解决了,现在还剩下鼠标画线动作与panel组件...

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

70. 请教Config.isAntialias=true会不会对整体性能有影响 [ 76%]

...ue会不会对整体性能有影响 因为游戏当中有些地方需要用graphic画扇形,为了避免扇形边缘有锯齿,启用了这个全局设置项。 想知道是否会对全局性能产生不利影响。 因为毕竟只有部分显示graphic扇形的地方要抗锯齿,如果因此...

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