大约有 683 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0061 秒)
Laya_社区(327) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(38) Laya2.0_示例(19) Laya_示例(15)
...图片进去,view和图片的anchorX anchorY都设置成0.5 然后view的width和height分别设置成750, 1334, 图片spr的width和height为125, 125 怎么spr坐标为375, 667却显示在左上角?并不是必现的,搞着搞着就出来了 附件 : --> 2018-07-02 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20180702
...camera.viewport; var renderTexture = RenderTexture.createFromPool(viewPort.width,viewPort.height,RenderTextureFormat.R8G8B8A8,RenderTextureDepthFormat.DEPTHSTENCIL_NONE); //将RenderTexture设置为渲染目标 buf.setRenderTarget(renderTexture); //清楚渲染目标的颜色为黑色,不清理深...
来源: Laya_社区 发布时间: 20201218
...改大小 tree.size(300, 300); //修改树的位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台 Laya.stage.addChild(tree); } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; // IDE中生成的此类对应的json对...
来源: Laya2.0_文档 发布时间: 20210715
... * <p>影响对象鼠标事件响应区域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。</p> * @default false 不可穿透,此对象的鼠标响应区域由width、heigh...
来源: Laya_社区 发布时间: 20180426
...read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalRotation : Number[read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...{ export class Sprite_Guide { private width = 750; private height = 1334; constructor() { Laya3D.init(this.width, this.height); Laya.stage.setScreenSize(this.w...
来源: Laya_社区 发布时间: 20200119
...his._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getCache(key); if (clips)this._sources=clips; else { thi...
来源: Laya_社区 发布时间: 20170516
...I extends Laya.Scene { public static uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name":"butStart","label":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ ...
来源: Laya_社区 发布时间: 20200228
...据计算得到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
...象的属性 y 的值,用于控制 label 对象的显示位置。 label.width = 300;//设置 label 的宽度。 label.height = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到...
来源: Laya3.0_api 发布时间: 20231115