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

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

741. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 59%]

...aya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); 2017-10-19 0 0 分享 微博 QZONE 微信 keailuo 赞同来自: 这个是整个demo hello.rar 2017-10-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, ...

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

742. 加载html的问题 [ 59%]

...载html文件: var p = new laya.html.dom.HTMLIframeElement(); Laya.stage.addChild(p); p.width = screenWidth; p.height = screenHeight; p.href = "https://www.baidu.com/index.html"; 这样写怎么报错了:gameThirdScriptError undefined;at api request success callback function undefined 说没有...

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

743. 【紧急】laya2.0的loadImage方法为什么触发complete? [ 59%]

...age方法为什么触发complete? var logo = new Sprite(); Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete触发?谁给...

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

744. 粒子释放问题 [ 59%]

...{ sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp);   sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })(); ---------------------------------------------------------------------------------------- ----------------------------------------------------...

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

745. 关于removeChildren、 destroy和destroyChildren的疑惑 [ 59%]

...this.graphics.drawLine(0,45,0,-45,'#ff0000',1); this.alpha = 0; Laya.stage.addChild(this); // this.pos(440,640); } Laya.class(sightBeadSprite, "SightBead", Laya.Sprite); return sightBeadSprite; }());然后如此使用destroy for (var i = 0; i < Laya.stage.numChildren; i++) { var object = Laya.sta...

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

746. Laya.Sprite3D.instantiate克隆的对象过多,渲染出来 [ 59%]

...ex++){ var circle = Laya.Sprite3D.instantiate(this.m_circle) this.m_pillar.addChild(circle); this.m_arrCircle.push(circle); this.m_vLastPos.y -= 60; circle.transform.localPosition = this.m_vLastPos; circle.active = true; } 2018-08-09 0 0 分享 微博 QZONE 微信 luckybryce 赞同来自: 回馈一...

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

747. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 59%]

...Map); var miniMap1 = new Laya.Image(); miniMap1.loadImage(img); Laya.stage.addChild(miniMap1); } } miniMap.src=url;     function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } els...

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

748. 为什么这个图片还是随机切换了,新手求帮忙 [ 59%]

...ndex= Math.floor(Math.random()*num); var img= new Laya.Image(); Laya.stage.addChild(img); img.skin = "res/"+index+".png"; 2017-01-11 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Todo 相关问题 请问LayaAir中如何使图片以圆...

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

749. laya的drawToTexture太坑 [ 59%]

...th, bounds.height, null, 0.3); shadow.pos(view.x, view.y); view.parent.addChild(shadow); 2020-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 开 赞同来自: 发出来, 也是为了让其他小伙伴...

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

750. 微信小游戏下使用laya 自带的video报错 [ 59%]

...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