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

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

231. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序一致的问题! [ 71%]

... arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite(); sp2.autoSize=true; sp2.name='sp2'; sp2.graphics.drawRect(0,0,100,100,"#0000FF"); sp2.x=110; Laya.stage.addChild(sp1); Laya.stage.addChild(sp2); onAddEvent...

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

232. 纹理截取后内存释放[ 71%]

...(_url); for (var i:int = 0; i < list1["oriBDPos"].length; i++ ) { var g:Graphics = new Graphics(); var t:Texture = Texture.createFromTexture(tex, posObj.x, posObj.y, posObj.w, posObj.h); g.drawTexture(t, 0, 0); oriDBArr[i] = g; } private function onClear():void { console.log(Laya.loader.getRes(...

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

233. laya.ui.Image_API3.0 [ 71%]

...rarchy UIComponent Image Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX cente...

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

234. laya.ui.Clip_API3.0 [ 71%]

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

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

235. 请问,怎么写代码能直接调用canvas 内的发光滤镜? [ 71%]

...webgl,直接使用canvas功能,实现了部分渐变功能。   spbg.graphics.drawPath(0,0, radius(spbg.width,spbg.height,10),{ fillStyle: gradient});  请问怎么写代码能调用下面的canvas原生代码?用Laya的滤镜。 (Laya滤镜和webgl捆绑了)             ...

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

236. htmlCanvas 像素级操作 [ 71%]

...ite() { Laya.loader.load("../src/img/testImg.png",Laya.Handler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片资源 var tex = Laya.loader.getRes("../src/i...

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

237. laya.ui.CheckBox_API3.0 [ 71%]

...ckBox Implements ISelect Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs center...

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

238. laya.ui.CheckBox [ 71%]

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

来源: laya_api 发布时间: 20170929

239. laya.map.GridSprite_API3.0 [ 71%]

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

240. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

...amp;& (i = 0); //清除sp节点的所有绘图(含子节点) sp.graphics.clear(); //在sp节点上重绘纹理 sp.graphics.drawTexture(res[i]); i++; }); }); } } 2.2 可带类型的多资源加载方式 假如,多数资源需要带类型,有的资源又需要用类型区别,该如...

来源: Laya3.0_文档 发布时间: 20251010