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

大约有 3,084 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0082 秒)

1751. 如何用代码控制panel的vscroll滚动幅度 [ 64%]

...ass LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { //panel 切记设置宽高,否则panel不显示 var panel:Panel=new Pane...

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

1752. 分享个用美术资源做位图文本的方法。。。 [ 64%]

...,imageData,600,"right"); bp.padding = bp1.padding = bp2.padding = -7; Laya.stage.addChild(bp); Laya.stage.addChild(bp1); Laya.stage.addChild(bp2); var t = 1000; Laya.timer.loop(1000,that,function(){ bp.text = t + ""; bp1.text = t + ""; bp2.text = t + ""; t++; }) } )); } } new GameMain(); 运行效...

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

1753. laya.ui.Slider_API3.0 [ 64%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask max min mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY sc...

来源: Laya3.0_api 发布时间: 20231115

1754. IOs使用手动删除本地资源再次进去加载问题 [ 63%]

...Handler.create(null, onLoaded2));      }  function onLoaded2() { Laya.stage.addChild(new TestUI()); }当用这种方式分步加载资源的时候 就会出现我说的情况  ios下会 安卓是正常, 第一步的资源会加载成功,第二部分的资源就加载失败 2018-07-31 0 0 ...

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

1755. laya.ui.FontClip_API3.0 [ 63%]

...aSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea index interval is3D isPlaying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right ro...

来源: Laya3.0_api 发布时间: 20231115

1756. laya.ui.UIGroup_API3.0 [ 63%]

...aSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D items labelBold labelColors labelFont labelPadding labelSize labelStroke labelStrokeColor labels left mask mo...

来源: Laya3.0_api 发布时间: 20231115

1757. 点击区域问题 [ 63%]

...区域问题 var con1:laya.display.Sprite = new laya.display.Sprite; Laya.stage.addChild(con1); con1.x = con1.y = 100; var con:laya.display.Sprite = new laya.display.Sprite; con1.addChild(con); // con.scrollRect = new laya.maths.Rectangle(200,200,500,500); con.x = con.y = -200; var sp:laya.display.S...

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

1758. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 63%]

...rt default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.a...

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

1759. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 63%]

...wser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL);         Laya.stage.bgColor = '#cccccc';         let txt: Laya.Text = new Laya.Text();         txt.text = GameMain.pxTimes + '倍ch/h=' + Laya.Browser.clientHeight + '/' + Laya.Browser.height +             ', cw/w' + Laya.Bro...

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

1760. 发布到微信画面显示不全 [ 63%]

发布到微信画面显示不全 Laya.stage.useRetinalCanvas = true useRetinalCanvas 也设置了 2021-09-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 132*****836 赞同来自:   2021-09-24 0 0 分享 ...

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