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

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

1. 加载-多种类型资源加载 [ 100%]

...= "res/skeleton/robot/texture.png"; (function() { Laya.init(100, 100); var assets = []; assets.push( { url: ROBOT_DATA_PATH, type: Loader.BUFFER }); assets.push( { url: ROBOT_TEXTURE_PATH, type: Loader.IMAGE }); Laya.loader.load(assets, Handler.create(this, onAssetsLoaded)); })(); function onAssetsL...

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

2. UI-Dialog [ 98%]

...H = 220, DIALOG_HEIGHT = 275, CLOSE_BTN_WIDTH = 43, CLOSE_BTN_PADDING = 5, assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; class UI_Dialog { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自...

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

3. UI-FontClip [ 87%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。 let assets = ["res/comp/fontClip_num.png", "res/comp/fontClip.png"]; class Font_Clip { constructor() { // 不支持WebGL时自动切换至Canvas const WebGL = Laya.WebGL, Stage = Laya.Stage; Laya.init(800, 600, WebGL); Laya.stage.a...

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