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

大约有 149 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0078 秒)

141. laya.ui.Dialog_API3.0 [ 15%]

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

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

142. laya.ui.AdvImage_API3.0 [ 14%]

...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

143. laya.ui.TextInput_API3.0 [ 14%]

...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

144. laya.ui.TextArea_API3.0 [ 14%]

...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

145. laya.display.Stage [ 14%]

...会根据屏幕大小进行适配。可以动态调用此方法,来更改游戏显示的大小。 Stage setSelfBounds(bound:Rectangle):void 设置对象bounds大小,如果有设置,则不再通过getBounds计算,合理使用能提高性能。 Sprite size(width:Number, height:Number):Sprite...

来源: Laya2.0_api 发布时间: 20190513

146. laya.display.Input_API3.0 [ 14%]

...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

147. laya.display.Stage_API3.0 [ 14%]

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

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

148. laya.ui.Tree_API3.0 [ 14%]

...= 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

149. 2D物理编辑 · LayaAir3.0文档 · LAYABOX [ 13%]

...如果使用 MKS 单位制,那么密度的单位就是 kg/m²。 由于游戏中均是以像素作为长度单位,用米作为长度单位对游戏开发者而言并不直观。 所以,LayaAir3引擎IDE为了直观的表达,除了重力加速度之外,默认将物理引擎中的1长度单...

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