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

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

651. 关于项目分包的问题?? [ 49%]

...ay.StageScaleMode; import flash.events.Event; import login.LoginView; [SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否...

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

652. LayaAir能做RPG吗?不要问我能不能,因我已经在做 - 杀意来袭 [ 49%]

...enderOrder = tJsonData.renderorder;             _mapW = tJsonData.width;             _mapH = tJsonData.height;                          _mapTileW = tJsonData.tilewidth;             _mapTileH = tJsonData.tileheight;                        ...

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

653. 微信小游戏,横屏,小游戏不全屏显示 [ 49%]

...竖屏思路:                    Laya.stage.scaleMode  "fixedwidth" :宽度不变,高度根据屏幕比缩放                   这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算   b.横屏思路:                    Laya.s...

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

654. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 49%]

...48导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

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

655. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 48%]

...ne" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="LoginScene.scene"; static sce...

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

656. 编译太慢了,我想到一种优化编译时间的方式,请官方给出评价 [ 48%]

...要添加这样一个类即可:class Laya { public static function init(width:Number, height:Number, ... plugins):* { return null } } 这有点类似使用laya 原生js开发中的.d.ts文件,只是我们应该让这个laya类定义库尽量的小,满足编译的要求即可。这样能够极...

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

657. Sprite3D支持的Unity导出列表(TypeScript-3D基础(TS)-LayaAir3D之Unity插件使用) [ 48%]

...derer.png) 1. Materials - Size - Element 2. Time 3. min Vertex Distance 4. Width 5. Color - Gradient 1. mode - Blend - Fixed 2. Color 3. Alpha 4. Location 6. Alignment - View - TransformZ 7. Texture Mode - Stretch

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

658. 某些机型drawToCanv绘图颜色变深 [ 48%]

...ring); //_webframe.setAttribute('frameborder', 0); _webframe.setAttribute('width', "100%"); _webframe.setAttribute('height', "100%"); //_webframe.setAttribute('align', "middle"); _webframe.setAttribute('scrolling', "no"); _webframe.setAttribute('position', "absolute"); _webframe.setAttribute('style'...

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

659. List组件拖动浏览时item会出现重叠的现象 [ 48%]

...st.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourceItem.HEI * list.repeatY) / 2; // 使用但隐藏滚动条,滚动条水平滚动 list.vScrollBarSkin = ""; // list.vScrollBarSkin 滚动条垂直...

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

660. 其他 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...下属性: 属性 类型 说明 pixelRatio number 设备像素比 screenWidth number 屏幕宽度,单位px screenHeight number 屏幕高度,单位px windowWidth number 可使用窗口宽度,单位px windowHeight number 可使用窗口高度,单位px statusBarHeight number 状态栏的高...

来源: Laya3.0_文档 发布时间: 20260128