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

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

541. laya.display.Text_API3.0 [ 70%]

...t Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROLL SHRINK VISIBLE _passwordChar drawtocanvCtx langPacks Accessors _isHeightSet _isWidt...

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

542. laya.ui.Tree_API3.0 [ 70%]

... } Hierarchy Box Tree Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY array bgColor blendMode bottom cacheAs centerX cent...

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

543. 关于intersects碰撞的疑问 [ 70%]

...如果还有不明白的我们再沟通!var sp1:Sprite=new Sprite(); sp1.graphics.drawRect(0,0,200,400,"#FF0000"); Laya.stage.addChild(sp1); var sp2:Sprite=new Sprite(); sp2.graphics.drawRect(0,0,300,400,"#0000FF"); sp2.pos(100,100); if(sp1.getBounds().intersects(sp2.getBounds())) { trace("相交...

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

544. laya.ui.UIGroup [ 70%]

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

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

545. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 70%]

...   if (maskSp)             {                 maskSp.graphics.clear();                                  var w:Number = maskSp.getSize().width;                 var h:Number = maskSp.getSize().height;                          ...

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

546. 关于创建Sprite获取大小 [ 70%]

...ow.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _th...

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

547. 微信小游戏开放数据域按钮点击位置偏移 [ 70%]

...ayout.width; sharedCanvas.height = layout.height; //先清空绘制 layout.graphics.clear(false); //设置大小 var canvas = new Laya.Texture(sharedCanvas); canvas.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 layout.graphics.drawTexture(canvas); } 2018-08-10 0 0 分享 ...

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

548. Panel控件滑动区域不正常的问题 [ 70%]

...unction () { var content=this._content; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; } 然后分别在panel的“setContentSize”和“changeScroll”方法的...

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

549. 分享:销毁龙骨动画! [ 70%]

...ar h:int = 40; var button:Sprite = 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; } private function parseComplete(fac:Templet):void { //创...

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

550. Sprite的背景颜色怎么设置 [ 70%]

... cuixueying 赞同来自: Sprite没有背景色的设置,你可以通过graphics绘制一个你想要的背景色。 2017-01-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 lilang 相关问题 btn 鼠标移动上去默认文本颜色...

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