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

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

281. 设置圆形的zOrder [ 86%]

...天 不是很清楚你说的问题,不知道你是不是创建了一个Graphics circle,graphics都是绘制在最下面的,要放到其他图片上层,你可以创建一个sprite作为容器,把circle作为sprite的子对象,这样控制sprite的层级即可达到你要的效果了 2018-...

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

282. laya.d3.graphics.VertexPositionNormalColorTextureSkinTangent [ 86%]

...PositionNormalColorTextureSkinTangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTextureSkinTangentInheritanceVertexPositionNormalColorTextureSkinTangent ObjectImplements IVertex VertexPositionNormalTextureSkin 类用于创建位置、法线、纹理、...

来源: laya_api 发布时间: 20170929

283. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 86%]

...); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height); hitArea.hit = graphic; skeleton.hitArea = hitArea; Laya.stage.graphics.drawRect(-rectangle.x, -rectangle.y, recta...

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

284. 绘制矩形与圆角矩形(JavaScript-LayaAir基础篇(JS)-矢量图) [ 86%]

...形 ### 一、用drawRect方法绘制矩形 在API中搜索`laya.display.Graphics`类可以查看到该API的各种矢量绘图方法。其中"drawRect();"方法用于绘制矢量矩形。该方法的详细说明如下图所示: ​ ![图片](img/1.png) ​ (图1) 下面我们用LayaAir引擎...

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

285. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1 [ 86%]

...exPositionNormalColorTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1InheritanceVertexPositionNormalColorTexture0Texture1 ObjectImplements IVertex VertexPositionNormalColorTexture 类用于创建位置、法线、颜色、纹...

来源: laya_api 发布时间: 20170929

286. 如何在MOVE的时候绘制线像画板一样! [ 86%]

...游戏绘制开放域内容,字体模糊是什么原因? webgl 绘制graphics出报错 如何清除graphics绘制的矢量图 如何清除sharedCanvas上一次绘制的内容 Laya.Scene.open打开的对话框中如何在关闭的时候调用父Scene中的方法 小游戏开放数据域下使用L...

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

287. 绘制图形的BUG [ 86%]

...nds Sprite { private var _shape:Sprite; public function MyBox() { super(); graphics.drawRect(0,0,200,200,"#00ff00"); _shape=new Sprite(); _shape.graphics.drawCircle(0,0,20,"#ff0000"); addChild(_shape); //加上这句正常,反之则异常 //_shape.cacheAsBitmap=true; pos(300,300); Tween.to(this,{r...

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

288. laya.spine.SpineSkeletonRenderer_API3.0 [ 86%]

...ya/spine/SpineSkeletonRenderer.ts:16 Methods draw draw(skeleton: Skeleton, graphics: Graphics, slotRangeStart?: number, slotRangeEnd?: number): void Defined in laya/spine/SpineSkeletonRenderer.ts:41 Parameters skeleton: Skeleton graphics: Graphics Default value slotRangeStart: number = -1 Default va...

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

289. 鼠标交互-修正交互区域 [ 86%]

...n); } function createCoralRect() { var coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.size(Laya.stage.width, Laya.stage.height / 2); Laya.stage.addChild(coralRect); coralRec...

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

290. 克隆sprite [ 86%]

...克隆sprite 什么克隆一个对象啊?  在下面的“   tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) {             let tempSpr: Sprite = new Sprite();             let...

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