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

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

121. laya.d3.graphics.StaticBatchManager [ 86%]

...s | Index | Frames No Frames StaticBatchManagerMethods Packagelaya.d3.graphicsClasspublic class StaticBatchManagerInheritanceStaticBatchManager Object StaticBatchManager 类用于静态批处理管理的父类。 Public Methods  MethodDefined By  StaticBatchManager() 创建一个 StaticBatch...

来源: Laya2.0_api 发布时间: 20190513

122. [LayaAir3]2D着色器 [ 86%]

...有texture的sprite进行处理,但是似乎不可以处理sprite上的graphics,例如我想做一个,用graphics绘制一个红色的圆,在着色器下,写上if(color.r>0.98)color.a=0.0; 可能出现的问题是,第一在添加graphics后,直接给出警告,图片消失,第二...

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

123. 关于环形进度条,进度不能重置问题 [ 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

124. viewport 的用法 [ 86%]

...用法  var Sprite = Laya.Sprite;   var HitArea = Laya.HitArea;   var Graphic = Laya.Graphics;   var Event   = Laya.Event;   var Layer = Laya.Layer;   var Rectangle = Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.g...

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

125. 如何清除graphics绘制的矢量图 [ 86%]

如何清除graphics绘制的矢量图             let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphic...

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

126. 音频-播放演示 [ 86%]

...ite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei", "#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音效"); Laya.SoundManager.playSound(...

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

127. graphics的fillTexture 圆角图边缘有多出线条 [ 86%]

graphics的fillTexture 圆角图边缘有多出线条 var texture = LoadingManager.instance.getRes("res/progress.png"); var graphics=new Laya.Graphics(); graphics.fillTexture(texture,0,0,texture.width,texture.height,"repeat"); 如果用drawTexture就没问题,因为平铺需求 需要用到fillTe...

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

128. 音频-播放演示 [ 86%]

... w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("播放音乐"); Sou...

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

129. 绘制直线或折线能抗锯齿吗 [ 86%]

...neColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 如何清除graphics绘制的矢量图 微信小游戏绘制开放域内容,字体模糊是什么原因? 如何给Spritegraphics绘制的线条添加发光滤镜? 微信小游戏在开放数据域绘制排行榜无法显示图...

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

130. 自定义的九宫格graphic组件不能放在系统graphic组件底层。 [ 86%]

自定义的九宫格graphic组件不能放在系统graphic组件底层。 为了减少sprite数,写了一个自定义的九宫格graphic组件,但是和系统的graphic组件叠加时,总是在系统graphic组件上方,请问有什么方法可以使自定义的graphic组件也能和系统...

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