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

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

271. laya.ui.List_API3.0 [ 8%]

...le { public function List_Example() { Laya.init(640, 800, "false");//设置游戏画布宽高、渲染模式。 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

272. laya.ui.TextInput_API3.0 [ 8%]

...xample { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoa...

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

273. laya.ui.TextArea_API3.0 [ 8%]

...Example { public function TextArea_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():voi...

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

274. laya.ui.AdvImage_API3.0 [ 8%]

...rtJump isSupportJump(): boolean Defined in laya/ui/AdvImage.ts:72 当前小游戏环境是否支持游戏跳转功能 Returns boolean loadImage loadImage(url: string, complete?: Handler): Sprite Inherited from AnimationBase.loadImage Defined in laya/display/Sprite.ts:1520 加载并显示一个图片...

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

275. laya.display.Input_API3.0 [ 8%]

...t miniGameTxt(value: string): void Defined in laya/display/Input.ts:429 小游戏专用(解决键盘输入框内容和游戏输入框内容不同步的bug) Parameters value: string Returns void off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Funct...

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

276. laya.display.Stage_API3.0 [ 7%]

...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Parameters screenWidth: number 屏幕宽度。 screenHeight: number 屏幕高度。 Returns void setScreenSizeForScene setScreenSizeForScene(screenWidth: number, screenHeight: number, _screenMode: str...

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

277. laya.ui.Tree_API3.0 [ 7%]

...= 0; arrow.y = 5; addChild(arrow); } } example Laya.init(640, 800);//设置游戏画布宽高、渲染模式 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色 var res = ["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png",...

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