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

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

11. laya.ui.AutoBitmap [ 94%]

...| Index | Frames No Frames AutoBitmapProperties | Methods Packagelaya.uiClasspublic class AutoBitmapInheritanceAutoBitmap Graphics Object AutoBitmap 类是用于表示位图图像或绘制图形的显示对象。 封装了位置,宽高及九宫格的处理,供UI组件使用。 Public Proper...

来源: laya_api 发布时间: 20170929

12. 输入设备-指南针 [ 93%]

...ass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本 createDegreesText(); Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); } function createCompass() { compassImg = new Sprite(); Laya.stage.addChild(compassImg); compass...

来源: Laya_示例 发布时间: 20250402

13. 输入设备-指南针 [ 93%]

.../ 创建方位指示器 this.createDirectionIndicator(); // // 画出其他UI this.drawUI(); // // 创建显示角度的文本 this.createDegreesText(); Gyroscope.instance.on(Event.CHANGE, this, this.onOrientationChange); } // 方位指示器指向当前所朝方位 createCompass() { const Sprite = ...

来源: Laya2.0_示例 发布时间: 20250402

14. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 92%]

..._cached ) { DollGunRole._ani_cached = true; Laya.Animation.createFrames( ["ui/gun_box/plane.png"], "demon_fly" ); Laya.Animation.createFrames( ["ui/gun_box/img_target_blank.png", "ui/gun_box/img_target.png"], "doll_target" );   } /** 用于设置对象的位置 */ let y_sp = 0;  // 设置血条 if...

来源: Laya_社区 发布时间: 20180515

15. UI-CheckBox [ 91%]

...= 200, VERTICAL_SPACING = 100, X_OFFSET = 100, Y_OFFSET = 50, skins; class UI_CheckBox { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.al...

来源: Laya2.0_示例 发布时间: 20250402

16. UI-CheckBox [ 91%]

...= Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/checkbox (1).png", "../../res/ui/checkbox (2).png", "../../res/ui/checkbox (3).png", "../../res/ui/checkbox (4).png", "../../res/ui/checkbox (5).png", "../../res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.creat...

来源: Laya_示例 发布时间: 20250402

17. UI-Clip [ 91%]

...andler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "../../res/ui/button-7.png"; var clipSkin = "../../res/ui/num0-9.png"; var bgSkin = "../../res/ui/coutDown.png"; var counter, currFrame, controller; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Lay...

来源: Laya_示例 发布时间: 20250402

18. UI-RadioGroup [ 91%]

...高效。let SPACING = 150, X_OFFSET = 200, Y_OFFSET = 200, skins; class UI_RadioGroup { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.al...

来源: Laya2.0_示例 发布时间: 20250402

19. UI-Clip [ 91%]

...开发语言、LayaAirIDE让项目开发更高效。let buttonSkin = "res/ui/button-7.png", clipSkin = "res/ui/num0-9.png", bgSkin = "res/ui/coutDown.png", currFrame; class UI_Clip { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Lay...

来源: Laya2.0_示例 发布时间: 20250402

20. UI-RadioGroup [ 91%]

...= Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/radioButton (1).png", "../../res/ui/radioButton (2).png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; construc...

来源: Laya_示例 发布时间: 20250402