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

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

631. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 47%]

...      Laya.stage.alignH = Stage.ALIGN_CENTER;         Laya.stage.scaleMode = "showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new S...

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

632. 这样的panel请问如何实现比较好? [ 47%]

... class GameMain { constructor() { Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATL...

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

633. sound manager在MOUSE_OVER事件中无法播放 [ 47%]

....stage.alignH = Stage.ALIGN_CENTER;              Laya.stage.scaleMode = "showall";             Laya.stage.bgColor = "#232628";              this.setup();         }          private setup(): void {             var gap: numb...

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

634. TypeError: relativePath is undefined [ 47%]

...as Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图http://layaair.ldc.layabox.com/api/ function createMa...

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

635. 2.0 Beta3版本中,runtime脚本的的问题 [ 47%]

...ass 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="mainscene.scene"; static sceneRoot:string=""; static debug:boolean=false; static ...

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

636. js进度,进度,js场景进度效果 [ 47%]

...ya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; //设置适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; //设置横竖屏 Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; //显示帧频信息 Laya.Stat.show(); //预加载 Laya.loader.load(this.arr, Laya.Handler.create(this, this.onAsse...

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

637. 使用HtmlDivElement取不到实际大小 [ 47%]

...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { createParagraph(); // 代码创建 showExternalHTML(); // 使用外部定义的html } function createParagraph() { var p = new HTMLDivEl...

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

638. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...V = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb...

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

639. 在webgl适配方式为showall下图形绘制问题 [ 47%]

...下边代码 Laya.init(1000,600,Laya.WebGL); Laya.Stat.show(); Laya.stage.scaleMode = "showall"; var sp1=new Laya.Sprite(); sp1.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55], [&qu...

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

640. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 47%]

...onstructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动画模板 this.templet = new SpineTempletBinary(); this.templet.loadAni(this.aniPath); thi...

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