大约有 176 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0061 秒)
Laya_社区(90) Laya3.0_api(61) Laya2.0_文档(7) Laya2.0_示例(6) Laya_示例(5) Laya3.0_文档(5) laya_api(1) Laya2.0_api(1)
...e(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_c...
来源: Laya_社区 发布时间: 20180302
... this._box = box; this._fly_site.w = this._box._area.w - 20; this._box.graphics.drawLine( 0, this._fly_site.h, this._box._area.w, this._fly_site.h, "#ff0000", 1 ); // 当更新房间时 if( this._doll_area.w != doll_area.w || this._doll_area.h != doll_area.h ) { this._doll_area.w = doll_area...
来源: Laya_社区 发布时间: 20180515
...; 4. 好了 收尾阶段在 laya.ani.js 中 Skeleton 类的 _createGraphics方法 有个调用骨骼更新的方法 this._rootBone.update(this._clipIndex,this._yReverseMatrix || Matrix.TEMP.identity()); 使用方式: this.__bind=new BindSkeleton(); Laya.stage.add...
来源: Laya_社区 发布时间: 20190805
...ection === 0) { gridSprite.graphics.drawImage(tTileTexSet.texture, tX + tTileTexSet.offX, tY + tTileTexSet.offY); // } // else { ...
来源: Laya_社区 发布时间: 20220627
...ey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); x = t.getPixels(0,0,400,400) console.log(x) for (let i of x) ...
来源: Laya_社区 发布时间: 20171201
...2D图像。 Sprite 是基本的显示图形的显示列表节点。 通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。Sprite针对不同的情况做了渲染优化,所以保证一个类实现...
来源: Laya3.0_文档 发布时间: 20250103
...有多种做法,而其间差异很有必要知道。 使用getBounds/ getGraphicBounds。 var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); getBounds可以满足多数多数需求,但由于其需要计...
来源: Laya3.0_文档 发布时间: 20240910
... _proto.setGradientText = function () { this.graphics.clear(); let data = ''; data += 'data:image/svg+xml,' + '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" '; da...
来源: Laya_社区 发布时间: 20180824
...ation EffectAnimation Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anch...
来源: Laya3.0_api 发布时间: 20231115
...节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;...
来源: Laya3.0_api 发布时间: 20231115