大约有 1,491 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(917) Laya2.0_文档(193) Laya_示例(125) Laya2.0_示例(101) Laya3.0_api(79) Laya3.0_文档(72) laya_api(2) Laya2.0_api(2)
...m.graphics.drawTexture(Laya.loader.getRes(IMG_RES[this.name])); Laya.stage.addChild(this.item); this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20170826
...is.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function 问题状态 最新活动: 2017-04-18 19:37 浏览: 1625 关注: 2 人 136*****931 • 2017-04-19...
来源: Laya_社区 发布时间: 20170418
... this.txt.fontSize=20; this.txt.color="#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(Laya.Event.MOUSE_DOWN, this, startScrollText); } function startScrollText(){ this.prevX = this.txt.mouseX; this.prevY = this.txt.mouseY; Laya.stage.on(Laya.Event.MOUSE_M...
来源: Laya_社区 发布时间: 20170810
....roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3); this.scene.addChild(this.roleMan); //给男角色添加贴图动画 var manAni:Laya.SkinAnimations = this.roleMan.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations; manAni.url="man/hero.ani"; manAni.player.play(); // play函数...
来源: Laya_社区 发布时间: 20180725
...Img(); img.on(Laya.Event.CLICK, this, switchImg) //点击事件 Laya.stage.addChild(img); function switchImg() { img.graphics.clear(); //清除绘制 var imgUrl = (this.flag = !this.flag) ? this.img1 : this.img2; img.loadImage(imgUrl, 100, 100) } }这是官方的切换位图的示例,但是点击...
来源: Laya_社区 发布时间: 20180502
... { //实例UI界面 var testView:TestPageUI = new TestPageUI(); Laya.stage.addChild(testView); pie = new Sprite(); Laya.stage.addChild(pie); Laya.timer.frameLoop(1,this,onLoop); } private var curAngle:Number = 0; private function onLoop():void { pie.graphics.drawPie(300,300,100,curAngle,curAng...
来源: Laya_社区 发布时间: 20180725
... Laya.Sprite3D.load("DoorShelf/shelf.lh"); this.scene.addChild(shelf0); shelf0.transform.translate(new Laya.Vector3(-4,1.2,35)); var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh"); this.scene.addChild(shelf3); ...
来源: Laya_社区 发布时间: 20180301
...0; this.wrong.height=200; this.wrong.x=50; this.wrong.y=100; this.doworkui.addChild(this.wrong); doworkui是我的一个UI,我要在这个面中打开一个对话框. wrongUI是我创建的 对话框 我现在这个对话框是可以初始化的 ,不过没有界面,就是一个关闭×,其它控件...
来源: Laya_社区 发布时间: 20171027
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; 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, 0.8, 1.5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var directio...
来源: Laya_社区 发布时间: 20171127
...i=0; i<3; i++){ var ball = myscene.addChild(sp.clone()); ball.name = i.toString(); } console.log("add finished: ", myscene.numChildren); for(v...
来源: Laya_社区 发布时间: 20200723