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

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

91. Laya.Tween.to或者Laya.Tween.from注意事项 [ 68%]

... 要回复问题请先登录 发起人 Mr.余 相关问题 分享:使用 graphics.clipRect 的注意事项 Laya.Tween.to Spine、Dragonbones使用注意事项 LayaNative使用socket传输数据注意事项 使用TextField的注意事项? LayaBox加载TiledMap地图和注意事项 【分享】图...

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

92. 图片如何能实现按照弧度360度的裁剪? [ 67%]

...mage.cacheAs = "bitmap"; bgImage.addChild(pMask);   let angle = 45; pMask.graphics.clear(); let radius = 80; pMask.graphics.drawPie(45, 45, radius, angle, 90, "#000000"); pMask.blendMode = "destination-out"; 2019-06-15 0 0 分享 微博 QZONE 微信 王壮壮 赞同来自: https://blog.csdn.net/wan...

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

93. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 67%]

... = rect; pos = bian * 0.5; } public function set360(value:int):void { this.graphics.clear(); if(value == -1){ return; } this.graphics.drawPie(pos,pos,r,START+(360 - value), 270 , COLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() > endTime ){ this.stop(); return; } var now...

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

94. drawToCanvas无法释放内存 [ 67%]

...exture(sp.drawToCanvas(sp.width,sp.height,0,0))             sp.graphics.clear()             sp.graphics.destroy()             tex.destroy()             tex.disposeBitmap()             tex.bitmap.releaseResource(); } 每次调用都不会刷...

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

95. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...amp;& (i = 0); //清除sp节点的所有绘图(不含子节点) sp.graphics.clear(); //在sp节点上重绘纹理 sp.graphics.drawTexture(res[i]); i++; }); }); } } 2.2 可带类型的多资源加载方式 假如,多数资源不需要带类型,有的资源又需要用类型区别,该如...

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

96. 请问更新遮罩的最优方式 [ 66%]

...变化   _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000");                      _barImage.mask = null; _barImage.mask = _mask;   试过需要置mask为null,然后再设置一次,...

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

97. 想用camera做一个类似照相机的功能 [ 66%]

...     this.imgSp = new Sprite();             this.imgSp.graphics.clear();             this.imgSp.cacheAs = "bitmap";             Laya.stage.addChild(this.imgSp);             this.imgSp.graphics.drawTexture(rtex); 2020-06-02 0 0 分享 微博 Q...

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

98. 新人求教!!! [ 65%]

...Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    this.switchImg();...

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

99. 分享,扩展Laya.Text组件实现简单的富文本 [ 65%]

...gin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "") + (this.bold ? "bold " : "") + this.fontSize + "px " + (Browser.onIPhone ? (laya.display.Text._fontFamilyMap[this.font] || this.font...

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

100. 关于资源回收的问题 [ 65%]

... 我这样载入场景问题出现在哪呢?? 模型资源释放问题 graphics alpha 问题 (此问题已经无效) IDE创建的UI 层级问题 问题状态 最新活动: 2017-05-09 22:07 浏览: 1362 关注: 4 人 PYS_Goon • 2017-05-10 10:10 对于timer的使用是建议全都使用Laya....

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