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

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

31. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 80%]

...; var maskArea = new Sprite(); guideContainer.addChild(maskArea); maskArea.graphics.drawRect(0, 0, width, height, "#000000"); maskArea.alpha = 0.5; var interactionArea = new Sprite(); guideContainer.addChild(interactionArea); interactionArea.blendMode = "destination-out"; var tipContainer = new Spri...

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

32. 自动旋转后残影 [ 80%]

...:void{ ChangeSize(); if(_tip) _tip.destroy();   _tip = new Sprite(); _tip.graphics.drawRect(0,0,100,100,"#FFFFFF"); _tip.size(100,100); Laya.stage.addChild(_tip);   Tween.to(_tip,{y:Browser.height - _tip.height,x:Browser.width-_tip.width},2000,null); } } }     附件 : --> 2019-05-20 添加评...

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

33. 这种进度条怎么实现? [ 79%]

...his.DEF_SIZE,this.DEF_SIZE) this.pos(200,200) this.cacheAs = "bitmap" this.graphics.drawPie(this.DEF_SIZE >> 1, this.DEF_SIZE >> 1, this.DEF_SIZE >> 1,-90,this.startY,'#ff0000') this.$circleSprite.blendMode = "destination-out" this.$circleSprite.pos(this.CIRCLE_WIDTH >> 1,thi...

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

34. laya.display.Graphics_API3.0 [ 79%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Graphics" Graphics Class Graphics Graphics 类用于创建绘图显示对象。Graphics可以同时绘制多个位图或者矢量图,还可以结合save,restore,transform,scale,rotate,translate,alpha等指令对...

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

35. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 79%]

...绘的切下来的部分,但黄色的原图一直还在,即便调用了graphics.clear()方法   这是我重绘部分的代码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位...

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

36. 关于动态绘制圆弧问题 [ 79%]

...如果我当前要制作一个转圈的圆弧, 我只能 this.sprite_gra.graphics.clear(); this.sprite_gra.graphics.drawPie(this.width / 2, this.height / 2, this.width, SkillIcon.START_NUM, this.end, "#000000"); 在定时器里,每次都擦除后再重新绘制一个圆弧吗? 没有一种思...

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

37. graphics.drawTexture 有问题,紧急! [ 78%]

graphics.drawTexture 有问题,紧急! 我想实现一个矢量画图功能,但是单纯的使用graphics.drawLine会发现DrawCall的指数会不断增多,为了优化相处了一个方案。   没画完一条线都将此画布drawToCanvas转成一个Texture,再clear这个画布,然...

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

38. laya.ui.AutoBitmap [ 78%]

...| Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Properties Hide Inherited Public Properties Show Inherited...

来源: laya_api 发布时间: 20170929

39. Laya.sprite.graphics失效 [ 78%]

Laya.sprite.graphics失效 bug触发方式:鼠标移动到一个CustomizeSprite实例上面,再挪开,等待数秒,所有方形sprite被清空,重新触发CustomizeSprite的鼠标事件后所有图形重新出现 注释掉CustomizeSprite.KillInfo函数中的PerformanceCentre.instance.Text...

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

40. Graphics的cleanByTexture问题 [ 78%]

Graphics的cleanByTexture问题 cleanByTexture有时候出现使用它来替换新的贴图没有成功的。流程:1.同一个贴图资源,通过事件进行通知两个界面进行更新贴图(两个地方的代码一致),其中一个界面的可以正常替换,另一个界面的则替换...

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