大约有 1,616 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0131 秒)
Laya_社区(986) Laya2.0_文档(192) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya3.0_文档(28)
... 在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
...注: 2 人 whaqzhzd • 2017-08-09 14:15 因为tiledmap是直接Laya.stage.addChild上去的,而不是由开发者传递一个Sprite进去,然后把tiledmap添加到该Sprite上。或者提供一个Hanbder回调让开发者自己去添加层级。这样不是很方便管理tiledmap的层级
来源: Laya_社区 发布时间: 20170808
...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
...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
...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
...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
... this.img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(this.img); //显示初始化绘制的图片 this.switchImg(); //侦听switchImg中图片区域的点击事件,触发后执行switchImg切换纹理绘制 this.img.on("click",this,this.switchImg);...
来源: Laya_社区 发布时间: 20180226
...ion onComplete(scene:Scene3D):void{ // 将场景加到舞台上 Laya.stage.addChild(scene); } } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715
...了 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
...法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛
来源: Laya_社区 发布时间: 20170829