大约有 1,720 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...!因为是必现所以没有提供DEMO了 getPixels(x, y, width, height) { if (window.conch) { return this._nativeObj.getImageData(x, y, width, height); //this._nativeObj为空! } ...
来源: Laya_社区 发布时间: 20220317
...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
...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
...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
...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
...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
...值范围0-1,值越大,摩擦越大,默认值为0.2ColliderBase height : Number矩形高度BoxCollider id : int[read-only] 获取唯一标识ID。 Component isSensor : Boolean是否是传感器,传感器能够触发碰撞事件,但不会产生碰撞反应ColliderBase isSingleton : Bo...
来源: Laya2.0_api 发布时间: 20190513
....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
.../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
...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