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

大约有 1,739 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0052 秒)

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

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

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

282. 绘制图形的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

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

284. 鼠标交互-修正交互区域 [ 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_示例 发布时间: 20240930

285. 克隆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

286. 关于环形进度条,进度不能重置问题 [ 86%]

...is.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Sprite(); this.circle.graphics.drawCircle(this.say.width/2, this.say.height/2, this.say.width/2, "#00ffff");...

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

287. laya.d3.graphics.VertexPositionNormalTexture0Texture1 [ 86%]

... VertexPositionNormalTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1InheritanceVertexPositionNormalTexture0Texture1 ObjectImplements IVertex VertexPositionNormalTexture 类用于创建位置、法线、纹理顶点结构。 Public ...

来源: laya_api 发布时间: 20170929

288. webgl遮罩的BUG [ 86%]

...现转圈进度条的效果                   this.mMask.graphics.clear();                 Laya.timer.loop(10,this,this.showMask);         public showMask():void         {             this.mMask.graphics.clear();            this.mMas...

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

289. 请问一下,怎么将下面这段AS3代码翻译成LayaAir的API [ 86%]

...ix()); var matrix:Matrix = new Matrix(); matrix.rotate(Math.PI/4); sprite_.graphics.beginBitmapFill(bitmap_, matrix, true); sprite_.graphics.drawRect(100, 50, 200, 90); sprite_.graphics.endFill(); addChild(sprite_); 2017-04-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

290. 鼠标交互-修正交互区域 [ 85%]

...= Laya.Sprite, Event = Laya.Event; let 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...

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