大约有 1,584 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0050 秒)
Laya_社区(1113) Laya2.0_文档(231) Laya_示例(108) Laya2.0_示例(69) Laya3.0_文档(50) Laya3.0_api(11) Laya2.0_api(2)
... Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; loadres(); function loadres(){ var res=[ {'url':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })(); 附件 : --> 2017-11-23 添加评论...
来源: Laya_社区 发布时间: 20171123
...ayabox.com/demo2/?language=ch&category=3d&group=Texture&name=TextureGPUCompression)) 在这里使用了 `URL.basePath` 方法,去设置加载路径,并且不同的平台加载不同的资源,来使用压缩纹理 ```typescript if (Browser.onAndroid) URL.basePath = "res/threeDimen/scene/LayaS...
来源: Laya2.0_文档 发布时间: 20210714
...SCALE_NOBORDER; // create a background texture Laya.stage.loadImage("../../res/pixi/laserBG.jpg"); Laya.stage.frameLoop(1, this, animate); })(); function animate() { if (tick > frequency) { tick = 0; // iterate through the dudes and update the positions var laser = new Sprite(); laser.loadImage("../...
来源: Laya_示例 发布时间: 20251209
... Laya.stage.bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); ...
来源: Laya_社区 发布时间: 20170826
UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...
来源: Laya_社区 发布时间: 20180326
...进行预加载,每次进入游戏都会重新加载一次 ar images = ["res/atlas/" + lang + "/shz_images.png","res/atlas/shz_line.png", "res/atlas/" + lang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress,...
来源: Laya_社区 发布时间: 20170216
...么地址与json文件的位置有关,比如你的json文件的地址是res/package.json,那么每张小图的地址为res/package/<小图的文件名>; 如果你的json文件中有meta.prefix,那么地址则为URL.basePath + prefix + <小图的文件名>。 这个文档里讲的...
来源: Laya_社区 发布时间: 20160610
##版本管理的功能介绍  关于版本管理,最开始是采用链接后加随机数的方式来管理,但是微信等环境下,缓存问题很严重,随机数方式并不能有效解决缓存问题,还是会出现因更新版本导致页面混乱等现象...
来源: Laya2.0_文档 发布时间: 20210715
...s:9742 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry...
来源: Laya_社区 发布时间: 20170108
...tml:HTMLDivElement=new HTMLDivElement(); imageHtml.innerHTML="<ani src='res/动画图集'></ani>"; Laya.stage.addChild(imageHtml); 2018-03-09 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 simphen 相关问题 微信关系...
来源: Laya_社区 发布时间: 20180309