大约有 1,880 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0105 秒)
Laya_社区(1141) Laya3.0_api(242) Laya2.0_文档(103) Laya2.0_示例(94) Laya_示例(91) Laya2.0_api(82) laya_api(76) Laya3.0_文档(51)
...版本) (64 位) 应该是目前最新的了 一 关于Sprite 的 width height 1. sp.loadImage('xxx.png',0,0,0,0,callback)调用方式 能否获取 立即调用宽高属性 no 回调 yes 延时(能够确保load的时间) yes没毛病 2. sp.loadImage('xxx.png',0,0,100,100,callback)调用方...
来源: Laya_社区 发布时间: 20171121
...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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...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_示例 发布时间: 20260303
...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