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

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

151. collider脚本当前帧销毁对象报错修复了吗? [ 73%]

...错误), //因此延迟一帧以销毁 Laya.timer.frameOnce(1, this, function () { this.weapon.destroy(); });   这个延迟一帧的bug修复了吗? 目前用到的直接销毁还是会报错,不知道是不是我逻辑问题。 谢谢! 2018-03-12 添加评论 免费帖 --> 分享 微博...

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

152. 3D文本纹理demo问题 [ 73%]

...维码真机调试也是如此。  TypeError: this.cxt.fillText is not a function             this.cxt.fillText(text, this.cav.width / 2, this.cav.height);                      ^^                                                    TypeError: this.cxt.fillT...

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

153. Laya.loader.create 报错, 升级2.0.2后 游戏卡顿 [ 73%]

...read property '_addReference' of undefined;at api request success callback function TypeError: Cannot read property '_addReference' of undefined     at t.<anonymous> (https://usr/game.js:49:8301)     at e.n._parse (https://usr/game.js:66:1995)     at Function.t._createNodeByJson (http...

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

154. LayaAir下报错:Iflash is not defined [ 73%]

...报错 window is not defined 导微信小程序报错window.focus is not a function 小游戏项目 加载有中文的json文件 报错 LayaAir 3D 有提供 3D 物理引擎功能吗? 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 2.2.0beta4...

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

155. TypeError: Cannot read property 'length' of null [ 73%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' TypeError: Laya.B...

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

156. 3D物理引擎有没有什么办法可以像unity的constraint那样锁住某些轴的旋转与位移么? [ 73%]

...节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决方案,也可以提供一下思路....

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

157. WaterPrimaryMaterial的使用 [ 73%]

...     Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = t...

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

158. as3字符串截取int的问题 [ 73%]

...自动转成以下JS并报错Uncaught ReferenceError: int is not defined function DConfig(){}; __class(DConfig,'DConfig'); __getset(1,DConfig,'GamrRoomEnterPower',function(){ return DConfig.gamrRoomEnterPower; },function(value){ DConfig.gamrRoomEnterPower=value; console.log(DConfig.gamrRoomEnterPowe...

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

159. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 73%]

...来自: 把引擎示例-2D-Sprite-遮罩-放大镜示例改为如下: (function() {     var Sprite = Laya.Sprite;     var Stage = Laya.Stage;     var Browser = Laya.Browser;     var Handler = Laya.Handler;     var WebGL = Laya.WebGL;     var maskSp;     var bg2;     (functi...

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

160. 3D物理引擎实现类似constraint方法 [ 73%]

...3d场景中,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function, 2d的实现似乎并不是3d忽略一个轴这样的方式,它们是不同的坐标系统,所以不通用,而我这边需要用3D的场景和模型,这条路也不...

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