大约有 8 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0020 秒)
...载失败: " + err); } } new Loader_ProgressAndErrorHandle();module laya { import Event = Laya.Event; import Loader = Laya.Loader; import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_ProgressAndErrorHandle { constructor() { Laya.init(550, 400); // 无加载失败重试 ...
来源: Laya2.0_示例 发布时间: 20241124
... = Loader.getRes(ROBOT_TEXTURE_PATH); // 使用资源 } })();module laya { import Loader = Laya.Loader; import Handler = Laya.Handler; export class Loader_MultipleType { private ROBOT_DATA_PATH: string = "res/skeleton/robot/robot.bin"; private ROBOT_TEXTURE_PATH: string = "res/skeleton/robot/texture...
来源: Laya2.0_示例 发布时间: 20241124
... 2; partIns.y = Laya.stage.height / 2; } } new Particle_T1();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.ParticleSetting; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat...
来源: Laya2.0_示例 发布时间: 20241124
... 2; partIns.y = Laya.stage.height / 2; } } new Particle_T2();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.ParticleSetting; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat...
来源: Laya2.0_示例 发布时间: 20241124
... 2; partIns.y = Laya.stage.height / 2; } } new Particle_T3();module laya { import Stage = Laya.Stage; import Loader = Laya.Loader; import Particle2D = Laya.Particle2D; import ParticleSetting = Laya.ParticleSetting; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat...
来源: Laya2.0_示例 发布时间: 20241124
...00"); break; } } } //激活启动类 new Sprite_ScreenShot(); package { import laya.d3.core.Sprite3D; import laya.display.Stage; import laya.events.Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.ui.Image; import laya.display...
来源: Laya2.0_示例 发布时间: 20241124
...值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test = game.ui.test.TestPageUI; import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定...
来源: Laya2.0_示例 发布时间: 20200319
...r = 5; console.log("All done."); } } } new Loader_Sequence();module laya { import Texture = Laya.Texture; import Handler = Laya.Handler; export class Loader_Sequence { private numLoaded: number = 0; private resAmount: number = 3; constructor() { Laya.init(500, 400); // 按序列加载 monkey2.png - ...
来源: Laya2.0_示例 发布时间: 20241124