• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 7 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0033 秒)

1. 怎么设置一个目录不打包为atlas [ 100%]

...小塔防游戏,分享给初学的朋友们(ts版本)《二》 请问下loader如何强制加载一个文件,避免浏览器的缓存 关于同为object层,层级设置无效的问题 H5动画和节奏的一个加速! 移植了一个游戏 代码重新 写的 在线急等,发现你们这...

来源: Laya_社区 发布时间: 20180110

2. 缓存清除方法clearTextureRes [ 99%]

缓存清除方法clearTextureRes    Loader.clearTextureRes=function(url){             url=URL.formatURL(url);             var arr=laya.net.Loader.getAtlas(url);             var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url);       ...

来源: Laya_社区 发布时间: 20171213

3. 自定义loadingView [ 91%]

...进行进度值传参 dd.loading(50); } //加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } 这里的dd=__JS__("window.loadingView"); 换成 ts 怎么写 Apple • 2018-04-16 16:22 直接 Laya.Brows...

来源: Laya_社区 发布时间: 20180416

4. Android替换游戏启动logo看不到设置的图片 [ 85%]

...播完一遍动画); 3、示例(AS为例)package { import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { private var dd:*; public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //判断是否在加速器端 __JS__("if(window.conc...

来源: Laya_社区 发布时间: 20160918

5. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 69%]

...了,地址当然不正确了,导致无法下载.代码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20160610

6. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 69%]

...下: ```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

7. laya.display.Animation_API3.0 [ 22%]

... Text 实例。 package { import laya.display.Animation; import laya.net.Loader; import laya.utils.Handler; public class Animation_Example { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景...

来源: Laya3.0_api 发布时间: 20231115