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

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

301. pos会影响精灵缩放效果的问题 [ 64%]

...代码很简单,如下 let img2: Laya.Sprite = new Laya.Sprite(); img2.graphics.drawTexture(texture, 0, 0, 200, 200); img2.graphics.drawCircle(100, 100, 20, "#ffff00"); img2.scale(2, 2); img2.pos(0, 0); img2.pivot(0, 0);效果如图所示,正常,圆圈在螃蟹的中间。   但是,当我...

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

302. drawTexture能否支持自定义滤镜,或者发光、颜色滤镜 [ 64%]

...自定义滤镜,或者发光、颜色滤镜 目前,laya.display.Sprite.graphics的函数drawTexture函数,不支持滤镜,能否开发支持?如果可以支持自定义滤镜就更好,当然如果没办法的话,那可以支持常用滤镜,发光滤镜,颜色滤镜这类。 感谢...

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

303. 资源加载清除问题 [ 64%]

....create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清理不掉...

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

304. laya.ui.Slider_API3.0 [ 64%]

...lider HSlider VSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY b...

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

305. laya.ui.UIGroup [ 64%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。Component height : Number[override] 表示显示...

来源: laya_api 发布时间: 20170929

306. 滤镜-模糊滤镜 [ 64%]

...ge.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y = (Laya.stage.height - texture.height) / 2; } applayFilter() { // 创建一个模糊滤镜 const BlurFilter = Laya.BlurFilter; // ...

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

307. laya.ui.Dialog_API3.0 [ 63%]

...Hierarchy View Dialog Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize closeEffect closeHandler closeType group hitTestPrior isModal isPopupCenter isShowEffect mouseThrough name popupEffect tag CANCEL CLOSE NO OK SURE YES dr...

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

308. laya.ui.UIGroup_API3.0 [ 63%]

...IGroup RadioGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs cent...

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

309. laya.ani.swf.MovieClip [ 63%]

...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 显示对象的高度,单位为像素,默认为0。 此高...

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

310. [LayaAirIDE3]2d相机打包后问题 [ 63%]

...a.loader.getRes("res/building.png");                 this.building.graphics.drawTexture(texture, 0, 0);             }),             null,             Laya.Loader.IMAGE         );     }      // 可视化边界     private visualizeBoundaries() {         const ...

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