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

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

871. 屏幕适配-缩放-No Border [ 83%]

...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...

来源: Laya_示例 发布时间: 20260303

872. laya.d3.physics.shape.CapsuleColliderShape [ 83%]

...leColliderShape 实例。 CapsuleColliderShape  _setScale(value:Vector3):void[override] CapsuleColliderShape  clone():*[override] 克隆。 CapsuleColliderShape cloneTo(destObject:*):void 克隆。 ColliderShape updateLocalTransformations():void 更新本地偏移,如果修改LocalOffset或Loc...

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

873. iOS wkWebView [ 83%]

...s手机都没问题,求大神给解答下啊!     private connect(): void { console.log("connect...."); this.hr = new Laya.HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya....

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

874. laya.utils.Stat [ 83%]

... Boolean = false[static] StatPublic Methods  MethodDefined By  enable():void[static] 激活性能统计Stat  hide():void[static] 隐藏性能统计信息。 Stat  show(x:Number = 0, y:Number = 0):void[static] 显示性能统计信息。 StatProperty Detail_useCanvaspropertypublic static var _...

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

875. laya.display.Stage [ 83%]

...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = nu...

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

876. laya.d3.component.animator.AvatarMask_API3.0 [ 83%]

...45 克隆。 Returns any 克隆副本。 cloneTo cloneTo(destObject: any): void Defined in laya/d3/component/Animator/AvatarMask.ts:54 克隆。 Parameters destObject: any 克隆源。 Returns void getAllTranfromPath getAllTranfromPath(): Record<string, boolean> Defined in laya/d3/component/An...

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

877. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 83%]

...his.resFix + keyChar + ".png"; } /** * 清除字体 */ private clearFnt(): void { XUtils.removeChilds(this.chars, BPFont.fontPool); } /** * 获取一个字体对象 */ private getSprite(): Laya.Sprite { let sp = BPFont.fontPool.shift() || new Laya.Sprite(); return sp; } /** * 创建位图文本 * @p...

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

878. 屏幕适配-缩放-Show All [ 83%]

...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...

来源: Laya_示例 发布时间: 20260303

879. 屏幕适配-缩放-Extract Fit [ 83%]

...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...

来源: Laya_示例 发布时间: 20260303

880. laya.d3.terrain.TerrainLeaf [ 83%]

...nLeaf() 创建一个新的 TerrainLeaf 实例。 TerrainLeaf  __init__():void[static] TerrainLeaf  calcLeafBoudingBox(worldMatrix:Matrix4x4):voidTerrainLeaf  calcLeafBoudingSphere(worldMatrix:Matrix4x4, maxScale:Number):voidTerrainLeaf  calcLODErrors(terrainHeightData:Float32Array, heighData...

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