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

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

991. animation在自定义box节点下不显示 [ 60%]

... 在stage上面也能显示吗? Laya_Aaron • 2018-07-20 10:35 在哪里addchild的。 135*****576 • 2018-07-20 10:40 在主循环里面添加的 Laya_Aaron • 2018-07-20 10:41 @135*****576:加给谁了,那个父节点有加进舞台吗 135*****576 • 2018-07-20 10:43 加给自己创建的...

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

992. 关于tiledmap的问题 [ 60%]

...注: 2 人 whaqzhzd • 2017-08-09 14:15 因为tiledmap是直接Laya.stage.addChild上去的,而不是由开发者传递一个Sprite进去,然后把tiledmap添加到该Sprite上。或者提供一个Hanbder回调让开发者自己去添加层级。这样不是很方便管理tiledmap的层级

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

993. 这种进度条怎么实现? [ 60%]

...is.CIRCLE_WIDTH) >> 1, (this.DEF_SIZE - 20) >> 1, "#fff") this.addChild(this.$circleSprite) this.start() } public start() { this.timerLoop(2, this, this.draw) } public draw() { if (this.startY >= 270) { this.clearTimer(this, this.draw) } this.startY++ this.graphics.clear() this.graphi...

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

994. IDE-显示IDE创建的界面 [ 60%]

...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...

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

995. IDE-显示IDE创建的界面 [ 60%]

...d(): void { //示例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); }// TestView.as package { import game.ui.test.TestPageUI; import laya.display.Text; import laya.events.Event; import laya.ui.Box; import laya.ui.Label; public class TestView extends TestPageUI { public funct...

来源: Laya2.0_示例 发布时间: 20200319

996. Laya.Sprite loadImage 参数问题 [ 59%]

...ite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); //加载显示图片 Img.loadImage("res/img/monkey1.png", w, h);//报错 return Img; } /**创建红色滤镜位图**/ private creteRedFilter():void{ //颜色滤镜矩阵,红色 var colorMatrix:any = [ 1, 0, 0...

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

997. 新人求教!!! [ 59%]

...    this.img = new Laya.Sprite();    //添加到舞台    Laya.stage.addChild(this.img);    //显示初始化绘制的图片    this.switchImg();    //侦听switchImg中图片区域的点击事件,触发后执行switchImg切换纹理绘制    this.img.on("click",this,this.switchImg);...

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

998. 预设/场景的导出(ActionScript-3D基础(AS3)-LayaAir3D之3D场景可视化编辑) [ 59%]

...ion onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): ![](img/2.png)(图2)

来源: Laya2.0_文档 发布时间: 20210715

999. 局部坐标转全局坐标结果与预期相差甚远 [ 59%]

...了 2018-12-19 0 4 分享 微博 QZONE 微信 LT 赞同来自: Laya.stage.addChild(this); Laya.timer.once(500,this,test); 转坐标放在后面加了个延时执行。。就没问题了。。应该是执行的时候组件还没有全部加进stage。。 2018-12-20 0 0 分享 微博 QZONE 微信 为...

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

1000. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 59%]

...法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛

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