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

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

211. laya.ui.List [ 51%]

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

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

212. laya.ui.VBox_API3.0 [ 51%]

...rarchy LayoutBox VBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior isSortItem mouseThrough name tag CENTER LEFT NONE RIGHT drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor ble...

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

213. laya.ui.HBox_API3.0 [ 51%]

...rarchy LayoutBox HBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag BOTTOM MIDDLE NONE TOP drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY bgColor blendMode bott...

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

214. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 50%]

...到这个页面所在的位置,在此设置设置一个背景色 bgPage.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在...

来源: Laya2.0_文档 发布时间: 20210715

215. [LayaAirIDE3]2d相机打包后问题 [ 50%]

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

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

216. laya.display.Stage_API3.0 [ 50%]

...ierarchy Sprite Stage Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize canvasDegree canvasRotation designHeight designWidth focus hitTestPrior mouseThrough name renderingEnabled screenAdaptationEnabled tag useRetinalCanvas ALIGN_BOTTOM ALIGN_CENTER ALIG...

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

217. 分享:Dragonbones/Spine的换肤操作 [ 49%]

...():void { var btn:Sprite=new Sprite();//绘制一个红色矩形按钮 btn.graphics.drawRect(0,0,150,30,'#FF0000'); btn.pos(10,430); btn.size(150,30);//sprite如果要触发鼠标事件,务必设置好size,也就是鼠标的相应区域 btn.on(Event.CLICK,this,onChangeSkin); Laya.stage.addChild(...

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

218. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...有多种做法,而其间差异很有必要知道。 使用getBounds/ getGraphicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计...

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

219. 分享个用美术资源做位图文本的方法。。。 [ 42%]

....Sprite(); charSp = Laya.Pool.getItemByClass("sprite",Laya.Sprite); charSp.graphics.fillTexture(this._imageData,charData.x,charData.y,charData.w,charData.h,"no-repeat",new Laya.Point(-charData.x,-charData.y)); charSp.size(charData.w,charData.h) charSp.scrollRect = new Laya.Rectangle(charData.x,charD...

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

220. 3d资源释放的问题 [ 38%]

...问题 有元件支援视频流渲染吗? Image元件读不了资料流 graphics alpha 问题 问题状态 最新活动: 2018-08-15 21:42 浏览: 1450 关注: 5 人 ggg333 • 2018-08-15 11:27 非常感谢回复,对于3,常驻内存然后使用时候创建对象的做法,上面那段代码...

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