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

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

2241. 2.7.1 enbug: cannon碰撞trigger的enter和exit频繁触发 [ 70%]

...rigger的enter和exit频繁触发 注释掉_simulate(deltaTime)函数的  this._btDiscreteDynamicsWorld.callBackBody.length = 0;                 this._btDiscreteDynamicsWorld.allContacts.length = 0; 这两句就正常了 附件 : --> 2020-08-06 添加评论 免费帖 --> 分享 微博...

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

2242. native模式下webgl [ 70%]

...邀请: 与内容相关的链接 提交 2 个回复 大林 赞同来自: this.gl = laya.webgl.WebGL.mainContext; if (!this.gl) { throw new Error('Failed to get WebGL Context'); } gl的context取不到,为空。webgl的支持也显示为false 2018-09-10 0 0 分享 微博 QZONE 微信 皓雪树青 ...

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

2243. 微信小游戏下使用laya 自带的video报错 [ 70%]

... 在一个界面中加入如上代码  video 没有显示 点击空白  this.videoElement.play is not a function TypeError: this.videoElement.play is not a function   2019-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

2244. Laya.util.Ease这个类是用来配合Tween的,可是怎么使用?没有任何资料啊。 [ 70%]

...Ease.backIn(100,100,100,100); Tween.to(sp,{x:400},1000,ease,Handler.create(this,onTween)); 2017-01-05 0 0 分享 微博 QZONE 微信 shaotianhk 赞同来自: var ease:*=Ease.backIn(100,100,100,100); 这句是什么鬼,放在js里直接报错 2018-04-02 0 0 分享 微博 QZONE 微信 为什么被...

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

2245. ScrollRect设置会引起其他的UI资源无法正在显示 [ 70%]

...ublic function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p....

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

2246. complete.run is not a function [ 70%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function 在做微信小游...

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

2247. layabox有播放图片内指定小图帧的API吗? [ 70%]

...图片内指定小图帧的API吗? layabox 有类似这样的API吗? this.animations.add('down', [0, 1, 2], 10, true); this.animations.add('left', [12, 13, 14], 10, true); 就是一个角色的上下左右动作都放一张图片里面了 2017-12-11 添加评论 免费帖 --> 分享 微博 QZONE...

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

2248. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 70%]

...t type="text/javascript"> function convertCanvasToImage(canvas,callback,thisObj) { var image = new Image(); image.onload = function() { console.log("图片已经加载"); callback(image,thisObj) }; console.log("图片加载中...") image.src = canvas.toDataURL("image/png"); return image; } </s...

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

2249. UI编辑器内的图片如何盖住代码添加的精灵? [ 70%]

...置即可! var img:Image=new Image(); img.loadImage('comp/image.png'); this.addChildAt(img,this.numChildren-2); 如果是同级下的显示对象,通过zOrder、addChildAt、setChildIndex都可以   2017-01-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问...

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

2250. 2D3D混合项目引擎如何初始化 [ 70%]

...REEN_NONE; Laya.loader.create("LayaScene_Laya/Laya.ls",Laya.Handler.create(this,this.on3DComplete));     报错 throw new Error("LoaderManager:unknown file("+url+") extension with: "+extension+"."); 2018-01-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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