大约有 251 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0057 秒)
...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHierarchy : Boolean[read-onl...
来源: Laya2.0_api 发布时间: 20190513
...。 Returns BaseTexture 位图。 Defined in laya/resource/Texture.ts:222 设置位图。 Parameters value: BaseTexture Returns void 位图。 cpuMemory get cpuMemory(): number Inherited from Resource.cpuMemory Defined in laya/resource/Resource.ts:124 内存大小。 Returns number destroyed get des...
来源: Laya3.0_api 发布时间: 20231115
设置cacheAs = bitmap时, drawCanvas 的一个bug drawCanvas(canvas: HTMLCanvas, x: number, y: number, width: number, height: number): void { if (!canvas) return; var src: Context = canvas.context as Context; var submit: ISubmit; if (src._targets) { //生成渲染结果到src._targets上 /* this...
来源: Laya_社区 发布时间: 20210527
...显示异常。(通常电脑上显示正常,在一些移动端因缺少设置的字体而显示异常)。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By align : String 表示文本的水平显示方式。 取值: "left": 居左对齐...
来源: laya_api 发布时间: 20170929
...SIZE,this,onResize); }); } protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Browser.getElementById("layaCanvas"); layaCanvas.width = Browser.width; layaCanvas.height = Browser.height; Laya.stage.size(Browser.width,Browser.height); } protected function ShuPin...
来源: Laya_社区 发布时间: 20190520
... Laya_Aaron 赞同来自: offset 是起始坐标,应当是0,0 , 你设置了宽高,相当于把起点设置为终点,什么都没有了。 2018-07-19 0 12 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: /** * <p>绘制 当前<code>Sprite</code> ...
来源: Laya_社区 发布时间: 20180719
... this._doll_area.w = doll_area.w; this._doll_area.h = doll_area.h; } // 设置容器的宽高 this.width = Math.max( this._blood_area.w, this._demon_area.w, this._doll_area.w ); this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h; this.graphics.drawRect( 0, 0, this.width,...
来源: Laya_社区 发布时间: 20180515
... 2.2.1 创建地图时,对图块层格式的要求 点击新建地图,设置好地图大小和块大小等初始参数后,点击另存为,存在你指定的位置即完成了创建。 然而,图块层格式需要特别注意,由于LayaAir引擎不支持Tiled Map地图为Base64的图块...
来源: Laya3.0_文档 发布时间: 20251010
...如果节点需要加载相关的皮肤,但放在不同域,这里可以设置 Optional _url _url: string Inherited from Node._url Defined in laya/display/Node.ts:55 autoSize autoSize: boolean = false Inherited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽...
来源: Laya3.0_api 发布时间: 20231115
...的是laya项目的项目配置文件.laya,而此文件是在IDE的项目设置面板设置保存后生成的; 用户想进行某项更改的话,可以先在IDE中进行设置再执行上述发布命令,这是我们推荐的方式;也可以直接手动修改项目配置文件,具体...
来源: Laya_社区 发布时间: 20180104