大约有 692 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(333) Laya3.0_api(89) Laya2.0_api(69) Laya2.0_文档(65) laya_api(61) Laya3.0_文档(41) Laya2.0_示例(19) Laya_示例(15)
... var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledMap地图 this.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void {...
来源: Laya3.0_文档 发布时间: 20251010
...lic static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150*****705 • 2018-0...
来源: Laya_社区 发布时间: 20180205
...this.templet.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleto...
来源: Laya_社区 发布时间: 20180824
...a.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, GameConfig.height,false); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; // 关于透传接口...
来源: Laya_社区 发布时间: 20200314
...e.SCREEN_HORIZONTAL; // 始终以横屏展示 Laya.stage.scaleMode = "fixedwidth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender...
来源: Laya_社区 发布时间: 20180522
...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
...竖屏思路: Laya.stage.scaleMode "fixedwidth" :宽度不变,高度根据屏幕比缩放 这种模式下的Laya.init(width,height, WebGL);高度一般是不对的,需要计算 b.横屏思路: Laya.s...
来源: Laya_社区 发布时间: 20200305
...enderOrder = tJsonData.renderorder; _mapW = tJsonData.width; _mapH = tJsonData.height; _mapTileW = tJsonData.tilewidth; _mapTileH = tJsonData.tileheight; ...
来源: Laya_社区 发布时间: 20161109
...48导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713
...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