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

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

11. laya.display.Stage [ 65%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台...

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

12. 陀螺仪与加速计 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

... this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo)...

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

13. 屏幕适配 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...比。 */ static get width(): number { Browser.__init__(); return ((ILaya.stage && ILaya.stage.canvasRotation) ? Browser.clientHeight : Browser.clientWidth) * Browser.pixelRatio; } /** * @en The physical height of the browser window, taking into account the device pixel ratio. * @zh 浏览...

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

14. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...完毕,此方法只执行一次 */ onAwake(): void { this.txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txt.size(500, 30); //大小 this.txt.pivot(this.txt.width/2, this.txt.height/2); //轴心点 this.txt.text = "大家好,欢迎各位开发者使用LayaAir I...

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

15. laya.display.Stage_API3.0 [ 63%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Stage" Stage Class Stage Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不同的画...

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

16. laya.ui.ScaleBox [ 62%]

...ct 自适应缩放容器,容器设置大小后,容器大小始终保持stage大小,子内容按照原始最小宽高比缩放 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node activeInHier...

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

17. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSiz...

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

18. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...毕,此方法只执行一次 */ onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtarea.size(500, 200); //大小 this.txtarea.pivot(this.txtarea.width/2, this.txtarea.height/2); //轴心点 this.txtarea.text = "大家好,欢迎各位...

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

19. laya.utils.PerfHUD [ 60%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

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

20. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.lab.size(500, 30); //大小 this.lab.pivot(this.lab.width/2, this.lab.height/2); //轴心点 this.lab.text = "大家好,欢迎大家来到LayaAir IDE"; //...

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