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

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

671. 分享:Dragonbones/Spine的换肤操作 [ 87%]

...始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居中对齐 Laya.stage.scaleMode='showall';//缩放模式 Laya.stage.screenMode='horizontal';//...

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

672. FaceBook iPhone X 适配(其他正常) [ 87%]

....height 适配代码: Laya3D.init(1336, 750); Laya.init(1336, 750); Laya.stage.screenMode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; Laya.stage.bgColor = "#0000000"; if (Laya.Browser.onPC) { Laya.stage.scaleMode = "exactfit"; } else { Laya.stage.scaleMode = "fixedheight"...

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

673. 骨骼动画进阶(ActionScript-2D进阶篇(AS3)-动画进阶) [ 87%]

...皮肤 skeleton0.showSkinByIndex(1); //播放 skeleton0.play(0,true); Laya.stage.addChild(skeleton0); //创建第二个动画 var skeleton1:Skeleton; skeleton1 = templet.buildArmature(0); skeleton1.pos(500, 700); skeleton1.showSkinByIndex(1); skeleton1.play(0,true); Laya.stage.addChild(skeleton1); }...

来源: Laya2.0_文档 发布时间: 20210715

674. LayaNative2.0 UI移除舞台,再添加必然无法显示 [ 87%]

...(); _con2 = new Sprite(); _con3 = new Sprite(); _con4 = new Sprite(); Laya.stage.addChild(_con1); Laya.stage.addChild(_con2); Laya.stage.addChild(_con3); Laya.stage.addChild(_con4);   _p1 = new UI1(); _p2 = new UI2();   ShowHide(); }   private function ShowHide():void { if (c % 2 == 0) { _con3.ad...

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

675. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 87%]

...pt module laya {     import Sprite = Laya.Sprite;     import Stage = Laya.Stage;        export class Sprite_DrawShapes {         private sp: Sprite;            constructor()         {             Laya.init(500, 300);         ...

来源: Laya2.0_文档 发布时间: 20210714

676. Laya适配IpnhoneX的缩放问题 [ 87%]

...aya适配IpnhoneX的缩放问题   Laya.init(750, 1334, Laya.WebGL); Laya.stage.scaleMode = "showall"; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE大概设置就是上面的, [img][attach]11977[/attach][/img] [img][attach]11978[/attach][/img] 分别是...

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

677. LayaAir开发笔记(1)五十音图连连看 [ 87%]

... g_stat_heiht); 加入下列代码设置窗口位置和拉伸效果。Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; 2.设置标题和输出信息 网上...

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

678. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 87%]

..." + "LayaBox</span><span>欢迎你的加入</span>" Laya.stage.addChild(div);2、获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e...

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

679. 动态阴影被切割了?为啥没有显示完成的阴影 [ 87%]

...擎 Laya.MiniAdpter.init(); Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); Laya.stage.on(Laya.Event.CLICK, this, mouseHandler); //添加3D场景 var scene = Laya.stage.addChi...

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

680. 怎么将这个横屏的调成竖屏的 [ 87%]

...容相关的链接 提交 1 个回复 cuixueying 赞同来自: 设置Laya.stage.screenMode为竖屏即可! 2017-07-22 0 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 hhwm15869035138 相关问题 【屏幕适配】在LayaAir上面是竖...

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