大约有 864 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(574) Laya3.0_api(65) Laya2.0_api(58) Laya2.0_文档(55) laya_api(54) Laya3.0_文档(20) Laya2.0_示例(20) Laya_示例(18)
....text赋值的和不带Label.text赋值的测试结果前后能相差将近300M内存,这300M内存是随着打开的界面越多慢慢累积上来的怎么都降不下去了,希望官方大大们能给个解答吗? 附件 : --> 2021-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20210109
...TER; Laya.stage.bgColor = "#232628"; Laya.stage.viewport=new Rectangle(0,0,300,300); createMap(); } private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.creat...
来源: Laya_社区 发布时间: 20170419
...curAngle:Number = 0; private function onLoop():void { pie.graphics.drawPie(300,300,100,curAngle,curAngle+1,"#000000"); curAngle+=1; if(curAngle>360) { Laya.timer.clear(this,onLoop); } } 为了实现CD转圈的效果,所以持续画扇形 但是画出来的扇形有透明度还有花纹 如图...
来源: Laya_社区 发布时间: 20180725
...创建完毕,此方法只执行一次 onAwake(): void { this.vslider.pos(300,300);//滑动条位置 this.vslider.skin = "resources/vslider.png";//滑动条底图皮肤 this.vslider.value = 0.5; this.vslider.max = 50; this.vslider.min = 0; this.vslider.tick = 1; this.vslider.showProgress = true;//...
来源: Laya3.0_文档 发布时间: 20251010
...创建完毕,此方法只执行一次 onAwake(): void { this.hslider.pos(300, 300);//滑动条位置 this.hslider.skin = "resources/hslider.png";//滑动条底图皮肤 this.hslider.value = 0.5; this.hslider.max = 50; this.hslider.min = 0; this.hslider.tick = 1; this.hslider.showProgress = true;//...
来源: Laya3.0_文档 发布时间: 20251010
..."; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; panel.width=300; panel.height=300; Laya.stage.addChild(panel); panel.addChild(img); panel.vScrollBar.min=1; panel.vScrollBar.max=500; panel.vScrollBar.value=panel.vScrollBar.max; Laya.timer.frameLoop(12,this,onLoop); } private function o...
来源: Laya_社区 发布时间: 20161103
...度或宽度值为 0 的矩形,如:var rect2:Rectangle = new Rectangle(300,300,50,0); RectanglePublic Constants ConstantDefined By TEMP : Rectangle[static] 全局临时的矩形区域,此对象用于全局复用,以减少对象创建RectangleProperty Detailbottompropertybottom:Number ...
来源: laya_api 发布时间: 20170929
...Armature.x = 100; mArmature.y = 200; var rect=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { cons...
来源: Laya_社区 发布时间: 20170830
...gColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++...
来源: Laya_社区 发布时间: 20170830
... 如图所示,项目在ui编辑界面已经设置了Text的固定宽度300,自动换行,当只显示普通的文字的时候,可以正常的换行,而只要显示emoji表情,在pc端是提早的换行了,而在手机端,是超出了宽度300的限制,直接不会换行了。复现d...
来源: Laya_社区 发布时间: 20191224