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

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

101. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 59%]

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

102. Laya 绑定显示内容到骨骼动画 [ 58%]

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

103. 引擎 TiledMap 居然不支持图块翻转 [ 57%]

...ection === 0) {                                 gridSprite.graphics.drawImage(tTileTexSet.texture, tX + tTileTexSet.offX, tY + tTileTexSet.offY);                                 // }                                 // else {                   ...

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

104. getimagedata直接调用无法获取有效像素问题 [ 57%]

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

105. 精灵 · LayaAir3.0文档 · LAYABOX [ 56%]

...2D图像。 Sprite 是基本的显示图形的显示列表节点。 通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。Sprite针对不同的情况做了渲染优化,所以保证一个类实现...

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

106. 2D性能优化 · LayaAir3.0文档 · LAYABOX [ 55%]

...有多种做法,而其间差异很有必要知道。 使用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_文档 发布时间: 20231008

107. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 53%]

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

108. laya.display.EffectAnimation_API3.0 [ 53%]

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

109. laya.display.Sprite_API3.0 [ 52%]

...节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Sprite同时也是容器类,可用来添加多个子节点。 注意: Sprite 默认没有宽高,可以通过getBounds函数获取;...

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

110. laya.display.FrameAnimation_API3.0 [ 51%]

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