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

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

111. 引入Puremvc.js,编译没问题,运行时报错查不到 [ 77%]

...未被定义,需要把puremvc绑定到window上 if( typeof define === "function" ) {     define( "puremvc", [], function()     { var puremvc; (function (puremvc) { "use strict"; //... })(puremvc || (puremvc = {})); }) } //修改为: var puremvc=window.puremvc||(window.puremvc={}); (funct...

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

112. 两个构造函数怎么相互调用,使用对方的变量? [ 77%]

...构造函数怎么相互调用,使用对方的变量? A.js:var A=(function(){ function A(){ this.a=0; } })(); var a=new A(); B.js: var B=(function(){ function B(){ this.b=1; } })(); 我想在B.js文件中用A.js的属性a,该怎么操作,请大神帮帮小白。...

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

113. 我想动态改自定义shader里的值,应该怎么写?? [ 77%]

...我这样写set的时候报错 Uncaught TypeError: this._setValue is not a function at CustomMaterial.setAlphaTestValue (CustomMaterial.js:34) at LayaAir3D.js:94CustomMaterial.setAlphaTestValue @ CustomMaterial.js:34 (anonymous) function CustomMaterial() {     CustomMaterial.__super.call(this);  ...

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

114. Laya.loader.create中的progress回调好像不准确? [ 77%]

...完成一遍后有没事件或者回调 执行回调函数时报is not a function 问题状态 最新活动: 2018-03-21 10:33 浏览: 811 关注: 2 人 jinfawu • 2018-03-21 10:50 我的代码是这样写的: Laya.loader.create("scenes/LayaScene_yueren/yueren.ls", Laya.Handler.create(th...

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

115. 新创建Cloud报laya is not defined [ 76%]

....3.0,demo放在附件 报错信息: TypeError: Laya.interface is not a function preload.js:55 at file:///F:/laya_workspace/FS/ElcBlock/client/bin/libs/laya.cloud.js:4:15   at file:///F:/laya_workspace/FS/ElcBlock/client/bin/libs/laya.cloud.js:682:3   TypeError: Laya.interface is not a function...

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

116. untiy导出的粒子特效有播放完成的回掉吗? [ 76%]

...ite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, function() { trace("COMPLETE callback!!"); }); }); 2017-05-15 0 1 分享 微博 QZONE 微信...

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

117. 4、声音无法用loader预加载 ,微信小游戏 [ 76%]

... 小明同学 有空看看我那个错误 wx.getFileSystemManager is not a function;at requestAnimationFrame callback function TypeError: wx.getFileSystemManager is not a function

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

118. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 76%]

...测到碰撞信息后删除对方。 PlayerMove.prototype.onTriggerStay = function (other) { this.tsizex = this.box._components[0]._transformOrientedBoundBox.extents.x; this.tsizez = this.box._components[0]._transformOrientedBoundBox.extents.z; this.osizex = other._transformOrientedBoundBox.extents....

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

119. 使用 new Animation 报错 e.indexOf [ 76%]

...用 new Animation 报错 e.indexOf Uncaught TypeError: e.indexOf is not a function at Function.t.formatURL (laya.core.min.js:3) at e.n.load (laya.core.min.js:6) at game.html:304 2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

120. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 76%]

...使用wx等微信基础对象,ide版本1.7.19.1beta wx.login({ success: function () { wx.getUserInfo({ success: function (res) { console.log('success', res) }, fail: function (res) { console.log("reject",res) } }) } }); 这段代码里的wx对象,报错如下 "wx is not defined" 2018-07-28 添...

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