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

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

1. 分享:DrawToCanvas内存释放问题! [ 100%]

...ps://ask.layabox.com/question/1726) if(htmlC&&texture) { texture.destroy(); } //截屏主要代码 count ++; htmlC=sp.drawToCanvas(800,800,0,0);//绘制 当前Sprite 到 Canvas 上,并返回一个HtmlCanvas。 texture= new Texture(htmlC);//将htmlCanvas赋值给texture对象 sp2 = new Sp...

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

2. laya.display.BitmapFont [ 91%]

...(以像素为单位)。BitmapFontPublic Methods  MethodDefined By  destroy():void 销毁位图字体,调用Text.unregisterBitmapFont 时,默认会销毁。 BitmapFont  getCharTexture(char:String):Texture 获取指定字符的字体纹理对象。 BitmapFont  getCharWidth(char:String):...

来源: laya_api 发布时间: 20170929

3. laya.display.BitmapFont [ 91%]

...(以像素为单位)。BitmapFontPublic Methods  MethodDefined By  destroy():void 销毁位图字体,调用Text.unregisterBitmapFont 时,默认会销毁。 BitmapFont  getCharTexture(char:String):Texture 获取指定字符的字体纹理对象。 BitmapFont  getCharWidth(char:String):...

来源: Laya2.0_api 发布时间: 20190513

4. Button销毁时,未对_clickHandler进行回收 [ 86%]

Button销毁时,未对_clickHandler进行回收 源代码: destroy(destroyChild = true) { super.destroy(destroyChild); this._bitmap && this._bitmap.destroy(); this._text && this._text.destroy(destroyChild); this._bitmap = null; this._text = null; this._clickHandler = null; this....

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

5. laya.display.Text [ 84%]

...有开启自定义渲染,才能使用customRender函数渲染。 Sprite destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node filters : Array滤镜集合。可以设置多个滤镜...

来源: laya_api 发布时间: 20170929

6. laya.ui.AutoBitmap [ 80%]

...d 设置剪裁区域,超出剪裁区域的坐标不显示。 Graphics  destroy():void[override] 销毁此对象。 AutoBitmap drawCircle(x:Number, y:Number, radius:Number, fillColor:*, lineColor:* = null, lineWidth:Number = 1):void 绘制圆形。 Graphics drawCurves(x:Number, y:Number, points...

来源: laya_api 发布时间: 20170929

7. laya.display.Scene_API3.0 [ 80%]

...除后,并不会被自动垃圾机制回收,如果想回收,请调用destroy接口,可以通过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAt...

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

8. laya.ui.View_API3.0 [ 80%]

...uctor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components...

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

9. laya.physics.PhysicsDebugDraw_API3.0 [ 79%]

...rchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY r...

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

10. laya.ui.Label [ 79%]

...,使用大括号可以指定组件的任意属性进行赋值。 Label destroyed : Boolean[只读]是否已经销毁。对象销毁后不能再使用。Node disabled : Boolean 是否禁用页面,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] ...

来源: laya_api 发布时间: 20170929