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

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

331. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 69%]

...lSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelSprite.graphics.fillText(tEventData.name, 0, 0, "20px Arial", "#ff0000", "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { ...

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

332. Text的中划线(删除线) [ 69%]

...         y+=this._charSize.height;             this._graphics.drawLine(x,y,x+lineWidth,y,this.underlineColor || this.color,1);         } y  如果  y+=this._charSize.height/2;  就是中划线  可以自己加个变量 控制 例如  linethrough   如果是 true...

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

333. laya.map.TileAniSprite_API3.0 [ 69%]

... Sprite TileAniSprite 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

334. laya.ui.FontClip_API3.0 [ 69%]

... Hierarchy Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheA...

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

335. destination-out 叠加模式问题 [ 69%]

...d(guideContainer); maskArea = new Sprite(); maskArea.alpha = 0.3; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#0ef604"); guideContainer.addChild(maskArea); //EventManager.add(MyEvent.PLAYER_MOVE,this,playerMoveFun); playerMoveFun(); //EventManager.add(MyEvent.MYR...

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

336. laya.particle.Particle2D_API3.0 [ 68%]

...chy Sprite Particle2D Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoPlay autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderE...

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

337. laya.media.SoundNode_API3.0 [ 68%]

...rchy Sprite SoundNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components customRenderE...

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

338. laya.map.GridSprite_API3.0 [ 68%]

...chy Sprite GridSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url aniSpriteArray autoSize drawImageNum hitTestPrior isAloneObject isHaveAnimation mouseThrough name relativeX relativeY tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHiera...

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

339. drawToCanvas无法截取到有子元素。 [ 68%]

... const texture = new Laya.Texture(htmlCanvas); const sp = new Sprite(); sp.graphics.drawTexture(texture); this.shot.addChild(sp);对,是可以的。当时drawToCanvas的第一个参数设置小了,没看到后面的元素。 这里还有一个问题: const sp1 = new Laya.Image(); sp1.skin = 'b...

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

340. 使用发光滤镜后的第一个遮罩效果无效 [ 68%]

...     var ui_hpBarMask = new Laya.Sprite();         ui_hpBarMask.graphics.clear();         ui_hpBarMask.graphics.drawRect(0, 0, 154, 12, 0xffffff);         this.txt_pro.displayObject.mask = ui_hpBarMask; 附件 : --> 2022-05-31 添加评论 免费帖 --> 分享 微博 QZONE ...

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