大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0055 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...ap1,map2,map3 背景图宽高 1800 class WorldPage extends ui.WorldPageUI{ constructor (x,y) { super() this.maxX = 149850 this.maxY = 97500 this.offsetX = x * 150 this.offsetY = y * 150 this.downMouseX = 0 this.downMouseY = 0 Laya.loader.load(['bg/world_bg.jpg']) Laya.stage.on(Laya.Event.MOUSE_DOWN,...
来源: Laya_社区 发布时间: 20181220
...盒、添加脚本等操作。 代码如下: ```js class LayaAir3D { constructor() { //初始化引擎 Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); //预加载角色动画...
来源: Laya2.0_文档 发布时间: 20210714
...设置Image的ScaleX为0时遮罩失效! // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Image(); img.skin ...
来源: Laya_社区 发布时间: 20170327
...ong材质。 Hierarchy Material BlinnPhongMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERMODE_CUTOUT RENDERMODE_OPAQUE RENDERMODE_TRANSPARENT RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_...
来源: Laya3.0_api 发布时间: 20231115
...一张 class LevelScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG...
来源: Laya_社区 发布时间: 20180529
...版本。 vincent • 2019-08-28 18:27 class TestSceneUI extends Scene { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl....
来源: Laya_社区 发布时间: 20190828
...显示的 2017-06-27 0 0 分享 微博 QZONE 微信 nazgul 赞同来自: constructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0...
来源: Laya_社区 发布时间: 20170627
...。具体代码如下所示: ```java // 程序入口 class LayaSample{ constructor() { Laya.init(100,100); var sessionStorage:any = Laya.Browser.window.sessionStorage; if(sessionStorage.pagecount){ sessionStorage.pagecount = parseInt(sessionStorage.pagecount)+1; } else{ sessionStorage.pagecount = ...
来源: Laya2.0_文档 发布时间: 20210715
...打开另外一个list item啊。 打开 dialog b 。b的构造方法: constructor() { super(); console.log(" Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("...
来源: Laya_社区 发布时间: 20190521
...ort Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // // 不支持WebGL时自动切换至Canvas // Laya.init(800, 600, WebGL); //此处为微信小游戏小改动 Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleM...
来源: Laya_社区 发布时间: 20180529