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

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

161. 求教 JS项目的Promise如何使用 [ 72%]

.../初始化舞台 Laya.init(1334, 750); //需要切换的图片资源路径 this.monkey2 = "res/img/monkey2.png"; //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.m...

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

162. laya升级到2.0.0beat4版本,加载场景出现的bug [ 72%]

...载:Laya.loader.create("Laya/Conventional/Map_SCC.ls",Laya.Handler.create(this,this.LoadCompleteHandler)); 加载完成后: var scene3D:Laya.Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55...

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

163. Laya.Geolocation使用报错 [ 72%]

...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); 报错如下: TypeError: Cannot set property 'enableHighAccuracy' of undefined 会出现无法找到Laya.Geolocation的各类属性错误,请问该如...

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

164. Laya.SoundManager.playSound报错 [ 72%]

...来自: SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, onComplete));  SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete));   https://layaair.ldc.layabox.co ... eDemo 2018-06-14 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 更新...

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

165. 真机调试 开启子域后 提示出现window is not defined [ 72%]

...      ↓按钮回调 绘制子域到工程 bt_rank_call_back(body){   this.bt_rank.CALL_BACK = function () { console.log("排行榜") var player_rank = body.wxData.get_canvas_4_code("SHOW_PLAYER_RANK",0) var rankTexture = new Laya.Texture(sharedCanvas); rankTexture.bitmap.alwaysChange = true; v...

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

166. 技术文档中的示例js运行报错 [ 72%]

...集,实现遮罩效果 里边的示例运行报错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(th...

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

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

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

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

168. Uncaught TypeError: Class constructor Component cannot be invoked without 'new' [ 71%]

... 'cursor' of undefined错误 Laya.GlowFilter is not a constructor Warning!,this class[MiniAdpter] already exist: Object {init: } 问题状态 最新活动: 2020-06-13 07:20 浏览: 723 关注: 2 人

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

169. this.scene.physicsSimulation.rayCastAll 报错 [ 71%]

this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray);   /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...

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

170. 构建andorid工程后,在AndoridStuido中模拟器调试运行出现如下问题,然后打不开APP [ 71%]

.../com.mygame.Shjy3Android" WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix. pkg: /data/local/tmp/com.mygame.Shjy3Android Success Launching application: com.mygame.Shjy3Android/demo.MainActivity. DEVICE SHELL COMMAND: am start -D -n "com.mygam...

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