大约有 318 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
...uper(); //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console....
来源: Laya_社区 发布时间: 20190426
....max.js:25487) at RenderContext.__proto.flush (GameLoader.max.js:11156) at Stage.__proto.render (GameLoader.max.js:33262) at Stage.__proto._loop (GameLoader.max.js:33188) at loop (GameLoader.max.js:10648) 2018-01-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180125
..._proto._update (http://127.0.0.1:10656/game/js/bundle.js:8101:15) at Stage.__proto.render (http://127.0.0.1:10656/game/js/bundle.js:24593:14) at Stage.__proto._loop (http://127.0.0.1:10656/game/js/bundle.js:24517:8) at loop (http://127.0.0.1:10656/game/js/bundle.js:8383:15) 说...
来源: Laya_社区 发布时间: 20181123
....__proto.flush (file:///F:/client_svn/h5/bin/libs/laya.core.js:5569:31) at Stage.__proto.render (file:///F:/client_svn/h5/bin/libs/laya.core.js:17348:14) at Stage.__proto._loop (file:///F:/client_svn/h5/bin/libs/laya.core.js:17274:9) at loop (file:///F:/client_svn/h5/bin/libs/laya.core.js:5061:16) 2...
来源: Laya_社区 发布时间: 20171111
...e = new Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。 附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZON...
来源: Laya_社区 发布时间: 20170216
... var image:Laya.Image = new Laya.Image(); image.source = rankTexture; Laya.stage.addChild(image); 附件 : --> 2018-04-03 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 你在报错的...
来源: Laya_社区 发布时间: 20180403
...用这个方法截图,报错 public saveImg() { let htmlCanvas: any = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let canvas: any = htmlCanvas.sourse; canvas.toTempFilePath({ x: 100, y: 200, width: 50, height: 50, destWidth: 100, destHeight: 100, fileType: "png", quality: 1.0...
来源: Laya_社区 发布时间: 20200108
...r.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this.camera.viewportPointToRay(this.point, this.ray); //11111111111111就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); ...
来源: Laya_社区 发布时间: 20170323
...nction Game(){ Laya.init(600,800); this.bg = new window.Background(); Laya.stage.addChild(this.bg); })(); })();Background.js var Background = (function(_super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.b...
来源: Laya_社区 发布时间: 20170420
...修改舞台Scale引发的报错。。。 Laya.init(1280,720, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.frameRate = "fast"; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Stat.show(0,0); Laya.stage.scaleMode = "showall"; Laya.stage.bgColor =...
来源: Laya_社区 发布时间: 20170407