• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 843 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

91. 水平滑动条组件 · LayaAir3.0文档 · LAYABOX [ 73%]

...创建完毕,此方法只执行一次 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_文档 发布时间: 20230920

92. 分享:TiledMap设置viewport后黑屏问题! [ 73%]

...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

93. graphics持续绘制扇形问题 [ 73%]

...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

94. Panel滚动条滑块位于最下方 [ 72%]

..."; 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

95. laya.maths.Rectangle [ 72%]

...度或宽度值为 0 的矩形,如:var rect2:Rectangle = new Rectangle(300,300,50,0); RectanglePublic Constants ConstantDefined By  TEMP : Rectangle[static] 全局临时的矩形区域,此对象用于全局复用,以减少对象创建RectangleProperty Detailbottompropertybottom:Number  ...

来源: laya_api 发布时间: 20170929

96. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 72%]

...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

97. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 72%]

...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

98. Laya.Text emoji 在pc浏览器上提早换行,在手机浏览器上不会换行。 [ 72%]

... 如图所示,项目在ui编辑界面已经设置了Text的固定宽度300,自动换行,当只显示普通的文字的时候,可以正常的换行,而只要显示emoji表情,在pc端是提早的换行了,而在手机端,是超出了宽度300的限制,直接不会换行了。复现d...

来源: Laya_社区 发布时间: 20191224

99. laya.maths.Rectangle [ 72%]

...度或宽度值为 0 的矩形,如:var rect2:Rectangle = new Rectangle(300,300,50,0); RectanglePublic Constants ConstantDefined By  TEMP : Rectangle[static] 全局临时的矩形区域,此对象用于全局复用,以减少对象创建RectangleProperty Detailbottompropertybottom:Number  ...

来源: Laya2.0_api 发布时间: 20190513

100. 调用Laya.Utils.parseXMLFromString 时一直报undefined的错误 [ 72%]

...der = initTreeItem();     // tree.xml = treeData;     // tree.size(300, 300)     // tree.x = (Laya.stage.width - tree.width) / 2;     // tree.y = (Laya.stage.height - tree.height) / 2;     // Laya.stage.addChild(tree); }      附件 : --> 2018-07-26 添加评论 免费帖 --> ...

来源: Laya_社区 发布时间: 20180726