大约有 203 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
...quipSkinedMeshSprite3D:Laya.SkinnedMeshSprite3D; this.role3D.getChildAt(0).addChild(equipSkinedMeshSprite3D); equipSkinedMeshSprite3D.transform.scale = new Laya.Vector3(2.54, 2.54, 2.54); 补充: 衣服单独添加到场景没有问题, 添加到人物上,就会出...
来源: Laya_社区 发布时间: 20180905
... this.Img.x =0; this.Img.y =0; this.Img.url ="../game/1.png"; Laya.stage.addChild(this.Img); //获取图片初始x y轴坐标 this.ImgX=this.Img.x; this.ImgY =this.Img.y; this.layout(); Laya.stage.on(Laya.Event.RESIZE, this, this.layout); Laya.stage.on(Laya.Event.ADDED, this, this.layout); layout...
来源: Laya_社区 发布时间: 20181123
...sp = Pool.getItemByClass(SPRITE_SIGN, Sprite) sprites.push(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage.on("click", this, function() { var sp; for(var i = 0, len = sprites.length; i < len; i++) { sp = sprites.pop(); ...
来源: Laya_社区 发布时间: 20160729
...何截取小数点之前的数字 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? LayaAir IDE 1.7.15 beta 九宫格在ie11下有缝隙,希望得到关注和解决! 问题状态 最新活动: 2018-06-13 ...
来源: Laya_社区 发布时间: 20180613
...输入地址运行//main.js import txt from './helloworld.js' Laya.stage.addChild(txt) //helloworld.js var txt = new Laya.Text(); txt.text = "Hello Layabox"; txt.color = "#ffffff"; export default txt 二、发布 安装工具,在ide上使用快捷键【ctrl+` 】打开终端,输入下面指令...
来源: Laya_社区 发布时间: 20171120
...ite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,this,this.animate); } private animate(e):void{ this.body.rotation += 10; } } class Main{ private ball:Ball; private targetX:number = 600; private targetY:number = 300; private cent...
来源: Laya_社区 发布时间: 20171108
...s(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.height)...
来源: Laya_社区 发布时间: 20171114
...l/Main.ls',Laya.Handler.create(this,(scene:Laya.Scene3D)=> { Laya.stage.addChild(scene); })); }); } 这样的加载一定包异常,不延时直接在构造函数里,执行加载没问题 2019-07-19 0 0 分享 微博 QZONE 微信 139*****202 赞同来自: 试试看用settimeout呢 2019-0...
来源: Laya_社区 发布时间: 20190719
...ature(1); skeleton0.pos(200,700); skeleton0.showSkinByIndex(1); Laya.stage.addChild(skeleton0); skeleton0.replaceSlotSkinName("head","goblin/head","goblingirl/head"); skeleton0.play("walk",true,true,0,0,true); } } new GameMain(); 2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180126
...时候它也会自动出现在舞台上,但另外一个view的页面不addchild到舞台上是不会显示的,很费解呀。希望有大佬能帮忙解答下。感谢了。 附件 : --> 2019-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20190225