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

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

31. Tween 缓动过程有触发回调函数么 [ 87%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。   update这个 数值改变就会触发回调,也就是过程中的回调 2018-01-09 0 1 分享 微博 QZONE 微信 kezhiyu 赞同来自: let a = new...

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

32. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 87%]

... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

来源: Laya2.0_文档 发布时间: 20210715

33. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 87%]

... new Sprite(); // 加载主体的背景 Laya.loader.load("res/island.png", Handler.create(this, function() { // 图片加载 var t = Laya.loader.getRes("res/island.png"); var tBall = Texture.create(t,866,190,548,305); var tTower = Texture.create(t,data.tower[towerLel].x,data.tower[towerLel].y,data.t...

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

34. QQ小游戏demo跑不起来 MiniFileMgr.fs.readFile无回调 [ 87%]

...问题: 1、Main.ts的 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 该行能成功运行,执行了this.onVersionLoaded回调; 2、然后该行Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.c...

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

35. Laya.loader.create 进度回调函数执行两次!!! [ 87%]

... 进度回调函数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); }   输出结果: 0.191865997...

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

36. Laya.Tween.to 有没有监听值的变化的方法? [ 86%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param   duration 花费的时间,单位毫秒。          * @param   ease 缓动类型,默认为匀速运动。  ...

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

37. 如何给loadprogress传参数? [ 86%]

如何给loadprogress传参数? Laya.loader.load(myurl,Laya.Handler.create(this,this.loadComplete),Laya.Handler.create(this,this.loadprogress,["param"])); /** * 加载进度 */ private loadprogress(data:Array<any>):void{ console.log("加载进度: " + data);//加载进度: param }Laya.Handl...

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

38. sk文件加载 [ 86%]

...Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import view.TestView;     import laya.webgl.WebGL;     import laya.net.URL;     import laya.ani.bone.Skeleton;          public class LayaUISample {                  public ...

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

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

...许把动画放进预制体? 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.Scene.addChild(OBJ); })); 附件 : --> Z...

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

40. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 85%]

...tage; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_DisplayImage { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = ...

来源: Laya2.0_文档 发布时间: 20210715