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

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

981. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 38%]

...1, this, this.animateFrameRateBased); Laya.stage.on("click", this, this.dispose); dispose() { Laya.timer.clear(this, this.animateFrameRateBased); } ``` 当一个对象的生命周期结束时,记得清除其内部的Timer: ### **三、获取显示对象边界的做法** 在相对布局中,很...

来源: Laya2.0_文档 发布时间: 20210714

982. laya.display.Animation_API3.0 [ 38%]

...toSize hitTestPrior loop mouseThrough name tag wrapMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx framesMap Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY autoPlay blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWid...

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

983. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 38%]

...List[i].playerhandpoker[j].PokerDre; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1;  for (let x = 0; x < this.outHandPoker.length; ...

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

984. laya.ui.AutoBitmap [ 38%]

...lpha:Number = 1):Array 绘制纹理。 Graphics drawTextures(tex:Texture, pos:Array):void 批量绘制同样纹理。 Graphics fillBorderText(text:*, x:Number, y:Number, font:String, fillColor:String, borderColor:String, lineWidth:Number, textAlign:String):void 在画布上绘制“被填充且镶...

来源: laya_api 发布时间: 20170929

985. laya.ui.FrameClip [ 37%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170422

986. laya.ani.GraphicsAni_API3.0 [ 37%]

... Returns DrawTextureCmd | null drawTextures drawTextures(texture: Texture, pos: any[], colors?: number[]): DrawTexturesCmd | null Inherited from Graphics.drawTextures Defined in laya/display/Graphics.ts:255 批量绘制同样纹理。 Parameters texture: Texture 纹理。 pos: any[] 绘制次数和...

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

987. laya.ui.AutoBitmap [ 37%]

...能更强大,性能会差一些 Graphics drawTextures(texture:Texture, pos:Array):DrawTexturesCmd 批量绘制同样纹理。 Graphics drawTriangles(texture:Texture, x:Number, y:Number, vertices:Float32Array, uvs:Float32Array, indices:Uint16Array, matrix:Matrix = null, alpha:Number = 1, color:St...

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

988. laya.ui.HSlider_API3.0 [ 37%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds setSlider set_anchorX set_anchorY set_bottom set_dataSou...

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

989. laya.ui.VSlider_API3.0 [ 37%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds setSlider set_anchorX set_anchorY set_bottom set_dataSou...

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

990. laya.ui.ScrollBar_API3.0 [ 37%]

...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setScroll setSelfBounds set_anchorX set_anchorY set_bottom set_dataSou...

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