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

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

801. 相对坐标布局的使用 [ 62%]

...maolw3 • 2017-10-17 12:10 Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Laya.stage.scaleMode = "fixedauto"; 舞台初始化需要改成这也吗 Monica • 2017-10-17 18:06 @maomaolw3:初始化引擎这块没错... Monica • 2017-10-17 18:07 @maomao...

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

802. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 61%]

...OMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Event.RESIZE, this, Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); }   2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

803. laya.ui.FontClip_API3.0 [ 61%]

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

804. laya.display.Animation [ 61%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

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

805. UI加载完成后无法获取控件的大小——超详细版问题 [ 61%]

...port Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHA...

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

806. tween对Text的缩放,为何会抖动呢? [ 61%]

...txt.color = "#ff0000";     txt.fontSize = 30;     txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1);     Laya.stage.addChild(txt);          Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000);   5秒钟把文本放大2倍,感觉是 fontSize在...

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

807. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 61%]

... var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo...

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

808. 分享:截屏! [ 61%]

...ebGL);             //设置背景颜色             Laya.stage.bgColor = "#ffcccc";             //设置舞台CLICK,该CLICK作为截屏的开关,点击舞台,对舞台对应的canvas区域进行截屏             Laya.stage.on(Event.CLICK,this,onClick);  ...

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

809. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 61%]

...中设置舞台背景透明无效  Laya.Config.isAlpha = true;   Laya.stage.bgColor = "none"; 附件 : --> 2024-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_XS 赞同来自: layabox  Laya.Conf...

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

810. Panel滚动条滑块位于最下方 [ 61%]

...x 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new...

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