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

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

321. 自己画的view不支持鼠标点击吗? [ 70%]

...//继续画到D点 ["closePath"] //闭合路径 ]; btn_1=new View(); btn_1.graphics.drawPath(0, 0, path, {fillStyle: "#123456"}); this.addChild(btn_1); btn_1.mouseEnabled=true; btn_1.on(Event.MOUSE_DOWN, this, onClickBt1);     不管怎么点,在这个点击方法里面是不会执行的  2018-...

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

322. RenderContext代码 调度问题 [ 70%]

RenderContext代码 调度问题 在laya画布上调用Laya.stage.graphics.drawLine画线 发现触发 RenderContext 里面的_drawLine方法  即使在鼠标松开后,还会不停的调用。这是不是正常现象? 附件 : --> 2017-11-27 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

323. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 69%]

...: Laya.init(600, 400, WebGL); let bgSprite = new Laya.Sprite(); bgSprite.graphics.drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = funct...

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

324. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 69%]

..._proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.RenderSprite._initRenderFun [as _fun] (laya.js:5466) at Sprite.__proto.render (laya.js:18990) at RenderSprite3D....

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

325. laya.physics.PhysicsDebugDraw_API3.0 [ 69%]

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

326. iOS环境浏览器使用mask黑屏 [ 69%]

...代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2. 使用iphone手机的safari扫码功能运行项目 3秒中之...

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

327. 分享: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

328. 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

329. 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

330. 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