大约有 262 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0059 秒)
添加spirte3D的时候回报错 Laya.stage.addChild(role); 附件 : --> 2018-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 你需要确认你添加对了, 只有这段截图...
来源: Laya_社区 发布时间: 20180831
....prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = function () { this.initLoadD...
来源: Laya_社区 发布时间: 20200924
...悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化...
来源: Laya_社区 发布时间: 20170525
... 按照官方教程编写的截屏功能,代码如下所示。 在sp内addChild失败,(未报错,图内可以看到打印出来sp子节点为空)。添加进Stage报错Failed to execute 'bindTexture' on 'WebGL2RenderingContext': parameter 2 is not of type 'WebGLTexture'. 请问这是什...
来源: Laya_社区 发布时间: 20200420
...F"; txt.pos(50, 100); Laya.stage.addChild(txt); socket = new Socket(); output = socket.output; ...
来源: Laya_社区 发布时间: 20170209
...统计信息 Laya.Stat.show(); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, fals...
来源: Laya_社区 发布时间: 20180605
...create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.addComponent(Laya.PhysicsCollider); var bulletShape = new Laya.MeshColliderShape(); bulletShape.mesh = bullet.meshFilter.sharedMesh; bulletColli...
来源: Laya_社区 发布时间: 20190308
...t, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。 附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞...
来源: Laya_社区 发布时间: 20170216
...s(0,0); video.load("https://game.ruanmengkeji.com/ ... 6quot;); Laya.stage.addChild(video) 在一个界面中加入如上代码 video 没有显示 点击空白 this.videoElement.play is not a function TypeError: this.videoElement.play is not a function 2019-03-12 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20190312
...n.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand.alone.version/main.min.js:1:149) at eval (http://stand.alone.version/main.min.js:1...
来源: Laya_社区 发布时间: 20180108