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

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

21. Cannot read property 'toDefault' of undefined报错是什么原因 [ 66%]

... // this.phasorSpriter3D = new Laya.PhasorSpriter3D(); } MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this....

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

22. F5, 运行后提示找不到 Laya类 [ 65%]

...件 EF_DataProtocol.js:var EF_DataProtocol = function () { EF_DataProtocol.prototype.init = function (){ }; } Laya.class(EF_DataProtocol, "EF_DataProtocol", null);  按F5, 运行后提示找不到 Laya类, 这是什么问题? 求指导.   附件 : --> 2020-10-01 添加评论 悬赏 --> 分享 微...

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

23. 请问UI之间的场景切换要怎么写 [ 65%]

...this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.mp3',0); } _proto.onWxSign = function(e){ onWxSign1(); } return sg_sign; })(ui.sg_signUI); var sg_index = (function(_super){ function sg_in...

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

24. httpRequest send返回Request failed Status:0 [ 65%]

... this.errorHandler); xhr.send(url, "", "get", "arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,...

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

25. 微信小游戏加载资源问题 [ 64%]

...ingContext2D = function () { }; MiniAdpter.window.CanvasRenderingContext2D.prototype = MiniAdpter.window.wx.createCanvas().getContext('2d').__proto__; MiniAdpter.window.document.body.appendChild = function () { }; MiniAdpter.EnvConfig.pixelRatioInt = 0; Laya.Browser["_pixelRatio"] = MiniAd...

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

26. 输入设备-贪吃蛇(重力感应) [ 64%]

...Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = this.rotation * ...

来源: Laya_示例 发布时间: 20241001

27. 反射实例中的属性 [ 62%]

...Laya.ClassUtils.regClass("sp", Reflect); Laya.ClassUtils.getInstance('sp').prototype.name } } new GameMain(); class Reflect { public name: string = "mmmmm"; constructor() { } public write(): void { console.log("qqqqqqqq"); } } 2018-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

28. 加载UI为什么总是加载白底 [ 60%]

...start.super(this); } Laya.class(start,"start",_super); //var _proto = Game.prototype; return start; })(ui.startUI) 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ????  fffff  ...

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

29. 最新版本绘制100x100个sprite ios不能显示 [ 60%]

... Laya.class(GameMap, "GameMap", laya.display.Sprite); var _proto = GameMap.prototype; _proto.init = function(){ var boxSp = new laya.display.Sprite(); // boxSp.cacheAsBitmap = true; for(var i = 0; i < this.MapRowNum; i++){ for(var j = 0; j < this.MapColNum; j++){ var box = new laya.display.Spr...

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

30. 如何在游戏入口处获取对象的子对象 [ 60%]

....super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" + num + ".json",new Rectangle(0,0,448,448),Handler.cre...

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