大约有 1,102 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0090 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...ya.ui.CheckBox; import Handler=laya.utils.Handler; class CheckBox_Example{ constructor() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/check.png", Handler.create(this,this.onLoadComplete));//加载资源。 } private onLoadComple...
来源: Laya3.0_api 发布时间: 20231115
...orPicker; import Handler = laya.utils.Handler; class ColorPicker_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/color.png", Handler.create(this, this.onLoadComplete));//加载...
来源: Laya3.0_api 发布时间: 20231115
...所以在3.0里请忽略这个继承。 Hierarchy Scene View Dialog Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet activ...
来源: Laya3.0_api 发布时间: 20231115
...lider = laya.ui.HSlider; class HSlider_Example { private hSlider: HSlider; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hslider.png", "resource/ui/hslider$bar.png"], Handler.create(thi...
来源: Laya3.0_api 发布时间: 20231115
...LayaAirIDE让项目开发更高效。class Physics_Physics_Strandbeests { constructor() { this.scale = 2.5; this.pos = [500, 400]; this.m_offset = [0, -80 * this.scale]; this.pivot = [0, 8 * this.scale]; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Ph...
来源: Laya2.0_示例 发布时间: 20250226
...,用于视图的显示等设置处理。 Hierarchy Box ViewStack Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColo...
来源: Laya3.0_api 发布时间: 20231115
...ort Handler = laya.utils.Handler; class Clip_Example { private clip: Clip; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { this.clip = new Clip("resource/ui/clip_num.png", 10, ...
来源: Laya3.0_api 发布时间: 20231115
...ui.ComboBox; import Handler = laya.utils.Handler; class ComboBox_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this, this.onLoadComplete));//加载...
来源: Laya3.0_api 发布时间: 20231115
...{ private txt: Text; private prevX: number = 0; private prevY: number = 0; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stag...
来源: Laya_示例 发布时间: 20250226
...示列表。 } example import Label = laya.ui.Label; class Label_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var label: Label = new Label();//创建一个 Label ...
来源: Laya3.0_api 发布时间: 20231115