大约有 655 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0101 秒)
...带版本号的。请问有解决方案么? 启用版本管理后,Laya.loader.load加载在微信web开发者工具触发不了回调 问题状态 最新活动: 2016-01-10 16:58 浏览: 2676 关注: 4 人
来源: Laya_社区 发布时间: 20160110
...@regClass() export class Main extends Laya.Script { onAwake(): void { Laya.loader.load(["resource/AtlasConfig.atlas"], Laya.Handler.create(this, () => { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() ...
来源: Laya3.0_文档 发布时间: 20251010
...内容并返回。如果不需要支持热重载,则忽略。 @Laya.regLoader(["abc"], null, true) export class DemoAssetLoader implements Laya.IResourceLoader { async load(task: Laya.ILoadTask): Promise<any> { let json = await task.loader.fetch(task.url, "json"); let res = task.obsoluteInst...
来源: Laya3.0_文档 发布时间: 20251010
... Texture; set texture(value: Texture); 我们来看看代码示例: Laya.loader.load("atlas/comp/image.png").then(() => { let sprite = new Laya.Sprite(); //精灵设置纹理并居中显示 let res = Laya.loader.getRes("atlas/comp/image.png"); sprite.pos(Laya.stage.width >> 1, Laya.stage....
来源: Laya3.0_文档 发布时间: 20251010
...m.google.android.webview version 71.0.3578.99 (code 357809950) I/cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 4539-4541) I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0 I/cr_LibraryLoader: Expected native library version ...
来源: Laya_社区 发布时间: 20190723
...tid 1) {422db6b0} 05-16 15:59:48.898 7562-7562/com.dihong.testdcc I/LibraryLoader: Expected native library version number "",actual native library version number "" 05-16 15:59:48.899 7562-7562/com.dihong.testdcc I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, de...
来源: Laya_社区 发布时间: 20190516
...e.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { ...
来源: Laya3.0_文档 发布时间: 20251010
...e.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获取这个粒子特效的所有粒子系统,用于后面整体播放 for (var i = 0, len = this._particle.numChildren; i < len; i++) { ...
来源: Laya3.0_文档 发布时间: 20250104
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_Instance();//创建一个 Dialog_Instance 类的实例对象 dialog...
来源: Laya3.0_api 发布时间: 20231115
...。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete)); } private function onLoadComplete():void { trace("资源加载完成!"); var button:Button = new Button("resource/ui/button.png","label");//创建一...
来源: Laya3.0_api 发布时间: 20231115