大约有 322 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0136 秒)
...res/ui/radioButton (2).png", "resources/res/ui/radioButton (3).png"]; Laya.loader.load(this.skins).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { for (let i: number = 0; i < this.skins.length; ++i) { let rg: Laya.RadioGroup = this.createRadioGroup(this....
来源: Laya3.0_文档 发布时间: 20240910
...,因为loadImage为异步,而在image的skin更换皮肤时,可以从loader里使用getRes加载到texture,但此时texture还未加载完成,所以导致source._bitmap为null,无法显示的问题,这个问题目前我们没有较好的解决方案,只能使用预加载或在loadIma...
来源: Laya_社区 发布时间: 20211105
...G * (this.skins.length / this.COLUMNS - 1) - this.BUTTON_HEIGHT) / 2; Laya.loader.load(this.skins).then(() => { this.onUIAssetsLoaded(); }); } private onUIAssetsLoaded(e: any = null): void { for (var i: number = 0, len: number = this.skins.length; i < len; ++i) { var btn: Laya.Button = this.cr...
来源: Laya3.0_文档 发布时间: 20240910
...valid url "res/protobuf/Login.proto" 具体代码: (function () { var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; console.log("!____________________________________") var ProtoBuf = Browser.window.protobuf; // Laya.init(550, 400); ProtoBuf.load("res/proto...
来源: Laya_社区 发布时间: 20180704
....create(null, function (res:any){ Laya.stage.addChild(res); })); //用Laya.loader的方式加载,加载后根节点是Scene2D Laya.loader.load('scene/Game.ls', Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)).then( (res)=>{ let scene = res.create(); //scene.s...
来源: Laya3.0_文档 发布时间: 20240910
...es/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png"]; Laya.loader.load(res).then(() => { this.onLoadComplete(); }); } private onLoadComplete(e: any = null): void { // 初始化树状列表的数据源 var treeData: string = "<data>"; //程序创建的模拟数据,模拟树...
来源: Laya3.0_文档 发布时间: 20240910
...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this....
来源: Laya2.0_示例 发布时间: 20250224
...ackground looper Looper (main, tid 1) {4a7bba70} I/chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0 I/BrowserProcessMain: Initializing chromium process, renderers=0 W/chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there ...
来源: Laya_社区 发布时间: 20171218
...@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_文档 发布时间: 20250103
laya native加载人物模型出错 我使用 var that=this; Laya.loader.create("res/3d/baseman01.lh", Laya.Handler.create(this, function(){ var scene3d=new Laya.Scene3D(); that.owner.addChild(scene); var model=Laya.loader.getRes(window.getPath("res/3d/baseman01.lh")); var player=model.clone();...
来源: Laya_社区 发布时间: 20190725