大约有 246 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
...出现大小写的问题.比如本地的场景为LoadingView.ls,通过Laya.loader.load加载Loadngview.ls,本地能正常打开.打包后md5版本管理匹配版本号匹配不上.(PS 没有进行测试,只是遇到了) 3,调试代码的时候出现过,代码修改后保存,然后刷新浏览器,浏...
来源: Laya_社区 发布时间: 20250725
...形式加载。或者传入地址数组。即可加载多个模型 Laya.loader.create([ {url:"资源目录/模型名字.lh"}, {url:"同上.lh"}, {url:"同上"}, {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20180529
...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...
来源: Laya3.0_文档 发布时间: 20251010
....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_文档 发布时间: 20251010
...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(Res,Handler.create(this,graphicsImg)); })(); function graphicsImg() { img = new Sprite(); //获取图片资源,绘制到画布 img.graphics.drawTexture(Laya.loader.getRes(Res),150,50); //添加到舞台 Laya.sta...
来源: Laya2.0_文档 发布时间: 20210715
...形式加载。或者传入地址数组。即可加载多个模型 Laya.loader.create([ {url:"资源目录/模型名字.lm"}, {url:"同上.lm"}, {url:"同上"}, {url:"同上"} ],Handler.create(this,onLoaded)); 2018-05-28 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 白夜行 Animat...
来源: Laya_社区 发布时间: 20180528
... (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:479:28) at LoaderManager.__proto._endLoad (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12775:11) at Loader.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12752:10) at EventHandler.__proto.runWi...
来源: Laya_社区 发布时间: 20171219
...源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),1...
来源: Laya2.0_文档 发布时间: 20210715
... 设计模式下发布之后,打包的图集没有json文件 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 在laya中应用unity的behaviour(行为组件)编程模式 "设计模式"导出的View出现“lose skin radio...
来源: Laya_社区 发布时间: 20201231
... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里...
来源: Laya_社区 发布时间: 20170725