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

大约有 17 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0027 秒)

1. ani时间轴动画问题 [ 100%]

ani时间轴动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() {     //创建一个Animation实例     var tl = new Laya.Animation();     //加载动画文件     tl.loadAnimation("TimeLine.ani");     //添加到舞台   ...

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

2. 时间轴动画问题 [ 99%]

... 报错: ani not found: TimeLine.ani#mode lost skin: smoke/t1.png ,you may load pics first lost skin: smoke/t2.png ,you may load pics first lost skin: smoke/t3.png ,you may load pics first lost skin: smoke/t4.png ,you may load pics first lost skin: smoke/t5.png ,you may load pics first lost skin: sm...

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

3. 加载-单一类型资源加载 [ 96%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)...

来源: Laya_示例 发布时间: 20241001

4. 加载-单一类型资源加载 [ 95%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Loader_SingleType { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Brows...

来源: Laya2.0_示例 发布时间: 20241001

5. 在加载包含Animation的prefab后,动画没有显示 [ 92%]

...动画进行单独处理?还是不允许把动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.S...

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

6. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 85%]

js环境下使用Loader加载图片在Sprite对象的.on函数无效 js环境下使用Loader加载图片在Sprite对象的.on函数无效 var tempnote = new Laya.Sprite(); 使用 tempnote.texture=Loader.getRes(tempjson.pic)后 tempnote.on函数不触发 使用tempnote.loadImage(tempjson.pic); 触...

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

7. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 83%]

Laya.loader.load(xx) 当地址""的时候,会报错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)        ...

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

8. 问一下这个问题要怎么改啊? [ 77%]

... addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.load(picUrl, Handler.create(this, showBgImg)); } private function showBgImg():void { pic = new Image(); pic.graphics.drawTexture(Laya.loader.getRes(picUrl), picX, picY); Laya.stage.addChild(pic); } } }   Main.as packa...

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

9. 引擎自带的图集图片丢失问题 [ 75%]

... 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免费帖 --> 分享 微博 QZONE ...

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

10. 加载一个txt文件 getRes出来类型为string 能转换成数组吗 [ 71%]

...载一个txt文件 getRes出来类型为string 能转换成数组吗 Laya.loader.load("res/text.txt", Handler.create(this, onAssetLoaded1), null, Loader.TEXT); var pic1 = Loader.getRes("res/2D特效/text.txt"); console.log(typeof pic1); 输出的类型为string 2017-06-20 添加评论 免费帖 --> ...

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