大约有 221 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
...ge的全局Y轴缩放值(会叠加父亲节点的缩放值)。 Sprite graphics : Graphics绘图对象。封装了绘制位图和矢量图的接口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite gray : Boolean 是否变灰。UIComponent height : Number[override] 显示...
来源: Laya2.0_api 发布时间: 20190513
...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
...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
...到这个页面所在的位置,在此设置设置一个背景色 bgPage.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); //添加到stage Laya.stage.addChild(bgPage); //实例化MonkeyPageUI页面 var monkeyPage: ui.MonkeyPageUI = new ui.MonkeyPageUI(); //为了能够清楚的看到这个页面所在...
来源: Laya2.0_文档 发布时间: 20210715
...a.loader.getRes("res/building.png"); this.building.graphics.drawTexture(texture, 0, 0); }), null, Laya.Loader.IMAGE ); } // 可视化边界 private visualizeBoundaries() { const ...
来源: Laya_社区 发布时间: 20251125
...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
...():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
...有多种做法,而其间差异很有必要知道。 使用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
....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
...问题 有元件支援视频流渲染吗? Image元件读不了资料流 graphics alpha 问题 问题状态 最新活动: 2018-08-15 21:42 浏览: 1450 关注: 5 人 ggg333 • 2018-08-15 11:27 非常感谢回复,对于3,常驻内存然后使用时候创建对象的做法,上面那段代码...
来源: Laya_社区 发布时间: 20180814