大约有 1,830 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0083 秒)
Laya_社区(1470) Laya3.0_api(102) Laya2.0_文档(77) Laya2.0_api(64) Laya2.0_示例(37) Laya_示例(36) Laya3.0_文档(35) laya_api(9)
...,就是物理分辨率。比如 iPhone8 的物理分辨率是`1334 × 750` 。而我们进行屏幕适配时,表达方式会有所不同,会以`屏幕宽的像素数量 × 屏幕高的像素数量`这样来体现。例如 iPhone8在默认的竖屏状态下,物理分辨率表达为`750 × 133...
来源: Laya2.0_文档 发布时间: 20210715
...; public class Main { public function Main() { //初始化引擎 Laya.init(500,500); var skins:Array = [ "res/button-1.png" ]; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); } public function onUIAssetsLoaded():void { var btn:Button = new Button("res/button-1.png"); Laya.stage.addC...
来源: Laya2.0_文档 发布时间: 20210715
...derableSprite3D.constructor Defined in laya/d3/core/SkinnedMeshSprite3D.ts:50 创建一个 MeshSprite3D 实例。 Parameters Default value mesh: Mesh = null 网格,同时会加载网格所用默认材质。 Default value name: string = null 名字。 Returns SkinnedMeshSprite3D Properties Optional _...
来源: Laya3.0_api 发布时间: 20231115
...; //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式为png; file.style.position ="absolute"; file.style.zIndex = 999; 下面看下完整的代码: class Main...
来源: Laya3.0_文档 发布时间: 20251010
...间隔时间(单位:毫秒)。默认值依赖于Config.animationInterval=50,通过Config.animationInterval可以修改默认帧间隔时间。 要想为某动画设置独立的帧间隔时间,可以使用set interval,注意:如果动画正在播放,设置后会重置帧循环定时器的...
来源: laya_api 发布时间: 20170929
... = false Inherited from ScrollBar.autoHide Defined in laya/ui/ScrollBar.ts:50 一个布尔值,指定是否自动隐藏滚动条(无需滚动时),默认值为false。 autoSize autoSize: boolean = false Inherited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽...
来源: Laya3.0_api 发布时间: 20231115
... = false Inherited from ScrollBar.autoHide Defined in laya/ui/ScrollBar.ts:50 一个布尔值,指定是否自动隐藏滚动条(无需滚动时),默认值为false。 autoSize autoSize: boolean = false Inherited from Text.autoSize Defined in laya/display/Sprite.ts:265 指定是否自动计算宽...
来源: Laya3.0_api 发布时间: 20231115
...r get bar(): Button Inherited from Slider.bar Defined in laya/ui/Slider.ts:508 表示滑块按钮的引用。 Returns Button blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMode Defined in laya/display/Sprite.ts:1056 指定要使用的混合模式。目...
来源: Laya3.0_api 发布时间: 20231115
...r get bar(): Button Inherited from Slider.bar Defined in laya/ui/Slider.ts:508 表示滑块按钮的引用。 Returns Button blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMode Defined in laya/display/Sprite.ts:1056 指定要使用的混合模式。目...
来源: Laya3.0_api 发布时间: 20231115
...eturns number Inherited from Text.height Defined in laya/display/Sprite.ts:503 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX、scaleY。 可以通...
来源: Laya3.0_api 发布时间: 20231115