大约有 15 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
...据计算得到AStar网格 */ createGridFromAStarMap(texture) { var textureWidth = texture.width; var textureHeight = texture.height; //读取图片像素 var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; //像素值为黑色不可通行,白色部分可以通行 for (var w = ...
来源: Laya2.0_文档 发布时间: 20210714
...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
...rivate function createGridFromAStarMap(texture:Texture):Array { var textureWidth:int = texture.width; var textureHeight:int = texture.height; //读取图片像素 var pixelsInfo:Uint8Array = texture.getPixels(); var aStarArr:Array = new Array(); var index:int = 0; //像素值为黑色不可通行,...
来源: Laya2.0_文档 发布时间: 20210714
...的RenderTexture var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); this.texture = renderTexture; //将当前渲染的结果拷贝到创建好的RenderTexture buf.blitScreenTriangle(null,renderTextur...
来源: Laya2.0_文档 发布时间: 20210715
... 2.2 refit函数: ```java private function refit():void { mapDiv.style.width = Browser.width / Browser.pixelRatio + "px"; mapDiv.style.height = Browser.height / Browser.pixelRatio + "px"; } ``` refit()使百度地图充满整个窗口,由于侦听了resize事件,在窗口resize...
来源: Laya2.0_文档 发布时间: 20210715
..."clipY": "3"}}, {"type": "Label", "props": {"y": "1", "text": "treeItem", "width": "150", "left": "33", "height": "22", "name": "label", "color": "#ffff00", "right": "0", "x": "33"}}, {"type": "Clip", "props": {"x": "0", "name": "arrow", "y": "5", "skin": "ui/clip_tree_arrow.png", "clipY": "2"}}], "...
来源: Laya2.0_文档 发布时间: 20210715
...引擎 Laya.init(0, 0); var Height:int = Browser.window.innerHeight; var width:int = Browser.window.innerWidth; Browser.window.console.log("Console Log:浏览器高:"+ Height + " 浏览器宽:" + width); } } } ``` **方式二:** ```java package { public class JSDemo { public function JSDemo(...
来源: Laya2.0_文档 发布时间: 20210715
...,可以设定为`White text with alpha`,即白色字透明底。 | | Width | 导出的位图宽度 | | Height | 导出的位图高度 | | Font descriptor | 字体描述文件,必须要选择 xml | | Textures | 纹理图片格式,必须要选择 png | #### 第六步:导出位图字体 完...
来源: Laya2.0_文档 发布时间: 20210715
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...
来源: Laya2.0_文档 发布时间: 20210714
...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...
来源: Laya2.0_文档 发布时间: 20210714