大约有 1,873 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0189 秒)
Laya_社区(1137) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(48)
...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() ...
来源: Laya_示例 发布时间: 20251209
...ml里是这样写的 <span>右边</span> <div style="width:422px;"> <img style= " display:inline; float:right; " src="Face/img_duihua_qipao_green_01.png "></img> <div style="background:url(Face/img_duihua_qipao_gree...
来源: Laya_社区 发布时间: 20170710
...加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refr...
来源: Laya2.0_示例 发布时间: 20251209
...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompre...
来源: Laya3.0_api 发布时间: 20231102
...d(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();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....
来源: Laya_示例 发布时间: 20251209
...d(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); La...
来源: Laya_示例 发布时间: 20251209
...apCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy end event getData getIsReady gpuCompre...
来源: Laya3.0_api 发布时间: 20231115
...FontLoaded(bitmapFont: BitmapFont,value1:string):void { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(this.fontName, bitmapFont); var txt: Text = new Text(); txt.width = 250; txt.wordWrap = true; txt.text=value1; txt.font =this.fontName; txt.leading = 30; txt.pos(Laya.stage.width - txt.width...
来源: Laya_社区 发布时间: 20190705
...AStar网格 */ private createGridFromAStarMap(texture):void { var textureWidth = texture.width; var textureHeight = texture.height; //读取图片像素 var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; //像素值为黑色不可通行,白色部分可以通行 for (var w = 0;...
来源: Laya2.0_文档 发布时间: 20210715
... 设备 打印出 设备分辨率 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分辨...
来源: Laya_社区 发布时间: 20170615