• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 163 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0079 秒)

141. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 51%]

...: **入口类GameMain.ts** ```typescript // 程序入口 class GameMain{ constructor() { //初始化引擎 Laya.init(1334,750,Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler...

来源: Laya2.0_文档 发布时间: 20210715

142. laya.ui.UIGroup_API3.0 [ 50%]

...Tab 和 RadioGroup 的基类。 Hierarchy Box UIGroup RadioGroup Tab Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchor...

来源: Laya3.0_api 发布时间: 20231115

143. laya.ui.ScrollBar_API3.0 [ 50%]

....ui.HScrollBar Hierarchy UIComponent ScrollBar VScrollBar HScrollBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoHide autoSize bottomMoveLimit changeHandler disableDrag downButton elasticBackTime elasticDistance hitTestPrior isLockedFun mouseThrough nam...

来源: Laya3.0_api 发布时间: 20231115

144. laya.ui.FontClip_API3.0 [ 49%]

...ntClip.value = "a1326";//显示"a1326"文字 Hierarchy Clip FontClip Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anch...

来源: Laya3.0_api 发布时间: 20231115

145. laya.ui.HScrollBar_API3.0 [ 49%]

....utils.Handler; class HScrollBar_Example { private hScrollBar: HScrollBar; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscrol...

来源: Laya3.0_api 发布时间: 20231115

146. laya.ui.VScrollBar_API3.0 [ 49%]

....utils.Handler; class VScrollBar_Example { private vScrollBar: VScrollBar; constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "res...

来源: Laya3.0_api 发布时间: 20231115

147. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.sprite2.on(Laya.Event.MOUSE_DOWN, this, this.test2);//设置监听...

来源: Laya3.0_文档 发布时间: 20251010

148. laya.ui.Label_API3.0 [ 49%]

...示列表。 } 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

149. laya.display.Input_API3.0 [ 48%]

...入时的文本的位置有少许的偏差。 Hierarchy Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROLL SHRINK TYPE_DATE TYPE_DA...

来源: Laya3.0_api 发布时间: 20231115

150. laya.ui.Tree_API3.0 [ 48%]

...a.utils.Browser; import Handler = laya.utils.Handler; class Tree_Example { constructor() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vsc...

来源: Laya3.0_api 发布时间: 20231115