大约有 339 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(268) Laya2.0_文档(29) Laya3.0_api(21) Laya3.0_文档(14) Laya2.0_示例(2) Laya2.0_api(2) laya_api(2) Laya_示例(1)
...商联系...”, 修改stage的scale后,会发生异常情况 请问下loader如何强制加载一个文件,避免浏览器的缓存 用Mac下Unity5.6.2f1导出的模型在Mac浏览器显示正常,发布到移动端不显示模型,但是顶点数面数都有 通过laya嵌入iframe 后 原本la...
来源: Laya_社区 发布时间: 20200119
...键松开时isFrame=false,按下播放尾焰特效后就置为true Laya.loader.load('../bin/testflame.part', Laya.Handler.create(this, (setting) => { let frame = new Laya.Particle2D(setting); let key = keyString; let frameX; let frameY; let play = true; let frameScale; let frameRotation; //问...
来源: Laya_社区 发布时间: 20190723
...nction.MiniFileMgr.readFile (http://127.0.0.1:63435/game/op ... 418:14) at Loader.__proto.load (http://127.0.0.1:63435/game/op ... 115:18) at LoaderManager.__proto._doLoad (http://127.0.0.1:63435/game/op ... 296:10) at LoaderManager.__proto._next (http://127.0.0.1:63435/game/op ... 269:26) at Loader...
来源: Laya_社区 发布时间: 20180507
...01-13 11:36 this.url = comp/lhjicon_5.png" this.cached_texture = Laya.loader.getRes(this.url) // 每次重新绘制的时候 this.graphics.clear() this.graphics.drawTexture(this.cached_texture) // 而不是每一次都 drawcanvas 然后再转成 texture,drawcanvas作用就跟截屏一样 kezh...
来源: Laya_社区 发布时间: 20180113
...能console出,那个list中的数据也存在,但没渲染出。 Laya.Loader.getRes请教 本地调试加载本地图片都报错 问题状态 最新活动: 2017-06-15 17:04 浏览: 1766 关注: 4 人 189*****192 • 2017-06-16 09:27 http://layaair.ldc.layabox.com/demo/?Filters_Color 我发的...
来源: Laya_社区 发布时间: 20170615
... 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
...在构建发布配置项里手动添加为始终包含的资源目录 Laya.loader.load("resources/aaa/test.atlas").then(() => {//更多资源加载方式,可查看《资源加载》文档 this.owner.skin = "resources/aaa/image.png"; //将图集路径+名称视为小图的资源目录,小图...
来源: Laya3.0_文档 发布时间: 20251128
...ya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/ function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onLoaded(): void { var rankList = new Laya.List(); ...
来源: Laya_社区 发布时间: 20180507
...下: ```typescript //先加载plf类型的合并后文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:T...
来源: Laya2.0_文档 发布时间: 20210714
...@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