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

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

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

...动画进行单独处理?还是不允许把动画放进预制体? 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

182. 关于创建Sprite获取大小 [ 68%]

...调。这个是异步获取,如果你要单个获取的话 window.Laya.loader.load(value.url, ls.Handler.create(this, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _th...

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

183. 没有加载的图片怎么获取width和height ? [ 68%]

...nction text_load_width_height() {      Laya.init(600,400);     Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetLoad() {      older = new Laya.Sprite();      older.loadImage("../laya/a...

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

184. tiledmap有时尺寸不正确 [ 68%]

...件 private _mTiledMap:TiledMap = null; // 自定义信息文件 private _mLoader:Loader = null; // 当前地图X坐标 private _mViewPortX:number = 0; // 当前地图Y左边 private _mViewPortY:number = 0; // 当前加载状态 private _mLoadState:ESceneLoadState = ESceneLoadState.eLoadNull; // 地...

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

185. load 跨域请求 [ 68%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

186. 如何给loadprogress传参数? [ 68%]

如何给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

187. 有没有办法知道一个页面是否被显示出来!!! [ 68%]

...存就会显示成负数 iphone自带浏览器页面怎么锁定 请问下loader如何强制加载一个文件,避免浏览器的缓存 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 斜角透视的感...

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

188. exception info:[SyntaxError: JSON Parse error: Expected '}'] at line 22 [ 68%]

...: Error Could not attach to main target 微信小程序里加载json文件 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug spine动画转换失败,加载错误:导出二进制数据出错:writeUint8 error - Out of range261, 有谁知道什...

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

189. OntriggerStay不执行 [ 68%]

...么回事? 为什么ani动画执行的不是按中心点执行的 Laya.loader.create 进度回调函数执行两次 layabox 3d格式转换 的 fbxtool 工具文件你们有吗? 我不要插件,要可执行的exe 如何检测Animation动画播放完毕后去执行方法? MOUSE_OVER注册的响...

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

190. 新人求教!!! [ 68%]

...成功后,通过回调方法绘制图片并添加到舞台      Laya.loader.load([this.monkey1,this.monkey2],Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{    //创建一个实例    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(th...

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