大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0051 秒)
...Factory.buildArmature(0); this.mArmature.x = 0; this.mArmature.y = 0; this.addChild(this.mArmature); this.mArmature.play(this.SWIM_RIGHT_ANI_NAME, true); Laya.timer.frameLoop(1, this, this.swim); } 在大部分浏览器都是OK的,但是在部分浏览器中,骨骼动画并不完整,动画...
来源: Laya_社区 发布时间: 20161209
...aphics.drawRect(0,0,100,100,"#FF0000"); sp.zOrder=1000; mapLayer.addChild(sp); Laya.timer.loop(200,this,onLoop); } private var aaa:Number=0; private var bbb:Number=0; private function onLoop():void { aaa--; sp.x++; tiledMap.moveViewPort(aaa,bbb); } spooner • 2017-05-25 12:25 例子如何...
来源: Laya_社区 发布时间: 20170525
...,5,5"; progressBar.changeHandler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + M...
来源: Laya2.0_文档 发布时间: 20210715
...leteHandler():void { var bg:Image = new Image("assets/bg.jpg"); Laya.stage.addChild(bg); }这张图在三星平板上可以完整显示出来,为什么在电脑上显示不完整呢。图分辨率为2560*1600 2017-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20171124
... at Scene3D.__proto._setParent (laya.core.js:18511) at Stage.__proto.addChild (laya.core.js:13290) at Main.Complete3D (Main.ts:48) at Handler.__proto.runWith (laya.core.js:1400) at LoaderManager.__proto._createOne (laya.core.js:14594) at LoaderManager.__proto._create (l...
来源: Laya_社区 发布时间: 20190124
...一颗树。 在代码中创建了一个GridSprite作为主角的容器,addChild到这个对象层。为了能使主角和树遮挡排序,分别设置了这几个对象的zOrder。 但发现树并没有遮挡主角。 像这种在编辑器中种植的树,怎么和代码添加的对象互相影...
来源: Laya_社区 发布时间: 20180601
...,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage.addChild(this.img); } private cacheCanvas: Laya.HTMLCanvas private cacheTexture: Laya.Texture init(){ let rect = this.img.getSelfBounds() this.img.pivot(Math.round(rect.width / 2), Math.round(rect.height / 2)) let bound = this....
来源: Laya_社区 发布时间: 20171211
...ign = StageAlign.TOP_LEFT; var loginView:LoginView = new LoginView(); this.addChild(loginView); } } } 提示:你需要确定4步 1、导入的fb(或 fd)项目,找到LoginView,手动调整分包的js文件路径(由于分包期间做过调整,所有分包后的js文件统一放在h5文...
来源: Laya_社区 发布时间: 20151225
2.2.0 bata3 vivo小游戏添加Scene3D报错 Laya.stage.addChild(new Laya.Scene3D());加入上面这行代码,双指触屏就报错。 提交vivo审核时发现的,我在自己的测试机vivo U1上复现了这个bug。 附件是复现bug的项目。 附件 : --> Scene3DVivo.zip 2019-09-02 添...
来源: Laya_社区 发布时间: 20190902
...对齐参照物 var reference:Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils.fitDOMElementInArea设...
来源: Laya_社区 发布时间: 20200909