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

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

301. 发布Oppo小游戏屏幕适配bug [ 79%]

...atic resize(): void { // let w = this.config.width; // let h = this.config.height; // let screen_wh_scale = Laya.Browser.clientWidth / Laya.Browser.clientHeight; // if (Laya.stage.scaleMode == Laya.Stage.SCALE_FIXED_WIDTH) { // h = this.config.width / screen_wh_scale; // } else { // w = this.config....

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

302. 模拟器和真机分辨率对不上 [ 79%]

...率 console.debug("-------loadingCallback---width="+Laya.Browser.width+",height ="+Laya.Browser.height+",pixelRatio="+Laya.Browser.pixelRatio);输出如下 -------loadingCallback---width=359,height =569,pixelRatio=1 569/359 = 1.58       // 比例的值 iPhone6分辨率375x667,像素750x1334 13...

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

303. laya.resource.NativeRenderTexture2D_API3.0 [ 79%]

...sion filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearRef...

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

304. laya.resource.Texture2D [ 79%]

...how Inherited Public Methods MethodDefined By  Texture2D(width:int = 0, height:int = 0, format:int, mipmap:Boolean = true, canRead:Boolean = false) 创建一个 Texture2D 实例。 Texture2D _getSource():*[override] 获取纹理资源。 BaseTexture  _parse(data:*, propertyParams:Object = null...

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

305. Sprite-新手引导 [ 79%]

...alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠加模式 interactionArea.blendMode = "dest...

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

306. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 79%]

....tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);         this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

307. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 79%]

...tSize().width;                 var h:Number = maskSp.getSize().height;                                  switch (this.type)                 {                     case PROGRESS_TIMER_TYPE_RADIAL:                          ...

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

308. laya.resource.TextureCube_API3.0 [ 79%]

...destroyed dimension filterMode format gammaCorrection gammaSpace gpuMemory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory errorTexture gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _removeRefer...

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

309. hitArea用法问题 [ 79%]

...this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.closeBtn.height+20,"#FF0000"); let hitA:Laya.HitArea = new Laya.HitArea(); hitA.hit = g; this.closeBtn.hitArea = hitA; // 写法二 this.closeBtn.graphics.drawRect(this.closeBtn.x-10,this.closeBtn.y-10,this.closeBtn.width+20,this.clos...

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

310. laya.display.cmd.DrawLineCmd_API3.0 [ 79%]

.../display/cmd/DrawLineCmd.ts:9 Methods getBoundPoints getBoundPoints(sp?: { height?: number; width: number }): number[] Defined in laya/display/cmd/DrawLineCmd.ts:77 Parameters Optional sp: { height?: number; width: number } Optional height?: number width: number Returns number[] recover recover(): v...

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