大约有 334 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0038 秒)
Laya3.0_api(116) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48) Laya_社区(10) Laya2.0_示例(1) Laya_示例(1) Laya2.0_文档(1)
...d error filterMode format frameRender gammaCorrection gammaSpace gpuMemory height id loop maxMipmapLevel mipmap mipmapCount muted obsolute paused playbackRate preload readyState referenceCount seekable seeking source videoHeight videoWidth volume width wrapModeU wrapModeV wrapModeW cpuMemory gpuMemo...
来源: Laya3.0_api 发布时间: 20231115
... = Laya.Browser.width / Laya. Browser.pixelRatio + "px"; this.mapDiv.style.height = Laya. Browser.height / Laya. Browser.pixelRatio + "px"; } refit()使百度地图充满整个窗口,由于侦听了resize事件,在窗口resize时也会重新填充窗口。 2.3 updatePosition函数: // 更新...
来源: Laya3.0_文档 发布时间: 20251010
...、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’middle’3.8 ...
来源: Laya3.0_文档 发布时间: 20230303
... /** * 生成一个矩形2D网格 * @param width 矩形的宽度 * @param height 矩形的高度 */ private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; ...
来源: Laya3.0_文档 发布时间: 20251120
...; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(2 * 3); let index = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; vertices[index++] = 0; verti...
来源: Laya3.0_文档 发布时间: 20251010
...t;li>橘子</li> 定义列表 <img src='image_url' width = 200 height=100/> <img src='atlas/comp/image.png' width = 200 height=100/> 显示一张图片,还可以使用百分比指定图片的大小 <a href='xxx'>link text</a> <a href='www.layabox.com'>蓝亚...
来源: Laya3.0_文档 发布时间: 20251010
...资源。 BaseTexture format : int[read-only] 纹理格式 BaseTexture height : int[read-only] 获取高度。 BaseTexture magFifter : int 放大过滤器 BaseTexture minFifter : int 缩小过滤器 BaseTexture mipmap : Boolean 是否使用mipLevel BaseTexture repeat : Boolean 是否使用重...
来源: laya_api 发布时间: 20170929
...; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text ...
来源: Laya3.0_文档 发布时间: 20251010
...te COLUMNS: number = 2; private BUTTON_WIDTH: number = 147; private BUTTON_HEIGHT: number = 165 / 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private xOffset: number; private yOffset: number; private skins: any[]; //组件被激活后执行,此时所有节...
来源: Laya3.0_文档 发布时间: 20251010
...onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; this.fontclp.sheet = "012345678...
来源: Laya3.0_文档 发布时间: 20251010