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

大约有 1,739 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0108 秒)

571. Image控件可以设置颜色么? [ 69%]

...信 watsonsong 赞同来自: 是指的不用贴图,直接每一帧用sp.graphics.drawRect去绘制一个带颜色的矩形么? 2018-01-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 watsonsong 相关问题 btn 鼠标移动上去...

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

572. 鼠标交互-拖动 [ 68%]

...1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } function onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) ape.startDra...

来源: Laya_示例 发布时间: 20241001

573. laya.physics.PhysicsDebugDraw_API3.0 [ 68%]

...rite PhysicsDebugDraw Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable des...

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

574. 在一个矩形之上画另一个矩形,只显示一个矩形 [ 68%]

...e.height - boxHeight - 10, boxWidth, boxHeight); //画出盒子 Laya.stage.graphics.drawRect( this.chuanBox.x, this.chuanBox.y, this.chuanBox.width, this.chuanBox.height, "#FFFFEE", "#FFFFFF", 2); this.sageBox = new Laya.Rectangle(this.chuanBox.x+this.chuanBox.width/2,this.chuanBox.y+this.chuanBox.h...

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

575. Sprite中的width,height和size(width,height)感觉没作用啊 [ 68%]

....create(this,function(texture:laya.resource.Texture){         sprite.graphics.clear();         sprite.graphics.drawTexture(texture,0,0,50,50);         sprite.autoSize = true; })); Laya.stage.addChild(sprite); 或者用Image: var image:laya.ui.Image = new laya.ui.Image("comp/bg.pn...

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

576. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 68%]

...       Uncaught TypeError: tex.once is not a function          at Graphics.__proto.drawTexture (laya.core.js:1438)          at onloaded (laya.core.js:1737)          at Graphics.__proto.loadImage (laya.core.js:1733)          at Function.Animation.createFrames (laya.core.js:182...

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

577. 鼠标交互-拖动 [ 68%]

...1, dragWidthLimit, dragHeightLimit); //画出拖动限制区域 Laya.stage.graphics.drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dr...

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

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

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

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

579. laya.display.FrameAnimation [ 68%]

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

来源: laya_api 发布时间: 20170929

580. laya.ui.VBox [ 68%]

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

来源: laya_api 发布时间: 20170929