大约有 30 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0035 秒)
设置Laya.stage.scaleMode = Stage.SCALE_NOSCALE;为什么要根据init里面的宽高裁剪呢,, pc开发,设置Laya.stage.scaleMode = Stage.SCALE_NOSCALE;为什么要根据init里面的宽高裁剪呢,, 能不能不裁剪,, 我想让舞台始终根据浏览器填满,,没有裁...
来源: Laya_社区 发布时间: 20171123
...aya.Stage; (function() { Laya.init(100, 100); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "#232628"; })(); })();module laya { import Stage = Laya.Stage; export class SmartScale_Align_Contral { constr...
来源: Laya_示例 发布时间: 20260929
...DDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; } } new SmartScale_Align_Contral();module laya { import Stage = Laya.Stage; export class SmartScale_Align_Contral { constructor() { Laya.init(100, 100); Laya.stage.scaleMode = St...
来源: Laya2.0_示例 发布时间: 20260929
... var rect; (function() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; createCantralRect(); })(); function createCantralRect() { rect = new Sprite(); rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(rect); updateRectPos(); }...
来源: Laya_示例 发布时间: 20260929
...幕适配失效 屏幕适配时只有设置 Laya.stage.scaleMode = Stage.SCALE_NOSCALE; 的时候后面两个居中和底部对象属性才会生效 Laya.stage.alignH = "center"; Laya.stage.alignV = "bottom"; 如果缩放设置为 Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO; 或者非Stage.SCALE_N...
来源: Laya_社区 发布时间: 20180503
...三种开发语言、LayaAirIDE让项目开发更高效。class SmartScale_Scale_NOSCALE { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage....
来源: Laya2.0_示例 发布时间: 20260929
... Laya.init(720, 1280, laya.webgl.WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_NOSCALE; // Laya.stage.size(6000, 6000); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded)); function onLoaded(): void { var sprite = new Laya.Sprite(); spri...
来源: Laya_社区 发布时间: 20170803
...a.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } startFun() { this.templet = new SpineTemplet(Laya.SpineVersion.v3_8); this.templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, th...
来源: Laya2.0_示例 发布时间: 20260929
... (function() { Laya.init(Browser.width, 255); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; createDom(); initMap(); createInfoText(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用高精度位置 Geolocation.enableHighAccuracy = true; G...
来源: Laya_示例 发布时间: 20260929
...E; // Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; // 本地运行,需要在index.html中引用百度地图API文件 this.createDom(); this.initMap(); this.createInfoText(); let successHandler = new Handler(this, this.updatePos...
来源: Laya2.0_示例 发布时间: 20260929