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

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

331. Texture.getPixels在手机真机Native环境中会报错 [ 78%]

...!因为是必现所以没有提供DEMO了   getPixels(x, y, width, height) {             if (window.conch) {                 return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空!             }            ...

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

332. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 78%]

...ference); reference.pos(0, 0); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElmt = Laya.Browser.createElement("img"); tipElmt.src = getResURI("ui/guide_tip.png"); tipElmt.style.zInddex = Laya.Render.canva...

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

333. 屏幕适配-缩放-Extract Fit [ 78%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_EXTRACT_FIT();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); L...

来源: Laya2.0_示例 发布时间: 20251209

334. 屏幕适配-缩放-Show All [ 78%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_SHOW_ALL();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...

来源: Laya2.0_示例 发布时间: 20251209

335. laya.resource.BaseTexture_API3.0 [ 78%]

...destroyed dimension filterMode format gammaCorrection gammaSpace gpuMemory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory dest...

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

336. laya.utils.Utils [ 78%]

...Area(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rectangle[static] 计算传入的显示对...

来源: laya_api 发布时间: 20170929

337. laya.physics.BoxCollider [ 78%]

...值范围0-1,值越大,摩擦越大,默认值为0.2ColliderBase  height : Number矩形高度BoxCollider id : int[read-only] 获取唯一标识ID。 Component isSensor : Boolean是否是传感器,传感器能够触发碰撞事件,但不会产生碰撞反应ColliderBase isSingleton : Bo...

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

338. 【解决】富文本html下划线换行bug [ 78%]

....length-1; var lastWords=words[lastIndex]; var lineY=lastWords.y+lastWords.height; if(cssStyle.textDecoration!="none"){ if(words[0].y != words[words.length-1].y){ let index = 0; let slsIndex;//secondLineStartIndex while(true){ if(words[index].y != words[index+1].y){ slsIndex = index; break; } index+...

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

339. 区块地图-PerspectiveWall [ 78%]

.../perspective_walls.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } new TiledMap_PerspectiveWall();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export ...

来源: Laya2.0_示例 发布时间: 20251209

340. 关于微信小游戏关系链的问题 [ 78%]

...review.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.height);     }); var rankTexture=new Texture(Browser.window.sharedCanvas); 这里报错 VM13215:1 gameThirdScriptError bitmap._addReference is not a function TypeError: bitmap._addReference is not a function 2018-03-26 2 ...

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