大约有 1,106 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0088 秒)
Laya_社区(447) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27)
...ne; private _position: Laya.Vector3; private _quaternion: Laya.Quaternion; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); this._po...
来源: Laya_示例 发布时间: 20251209
...新建一个ui项目。简单的调用接口如下: class LayaUISample { constructor() { //初始化引擎 Laya.init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要...
来源: Laya3.0_文档 发布时间: 20251010
...性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet activ...
来源: Laya3.0_api 发布时间: 20231115
....utils.Handler; class HScrollBar_Example { private hScrollBar: HScrollBar; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscrol...
来源: Laya3.0_api 发布时间: 20231115
....utils.Handler; class VScrollBar_Example { private vScrollBar: VScrollBar; constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "res...
来源: Laya3.0_api 发布时间: 20231115
...el Class Panel Panel 是一个面板容器类。 Hierarchy Box Panel Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgCo...
来源: Laya3.0_api 发布时间: 20231115
...式显示开放域数据 Hierarchy UIComponent OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendM...
来源: Laya3.0_api 发布时间: 20231115
...er = laya.utils.Handler; class VSlider_Example { private vSlider: VSlider; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vslider.png", "resource/ui/vslider$bar.png"], Handler.create(thi...
来源: Laya3.0_api 发布时间: 20231115
...ss TipManager 鼠标提示管理类 Hierarchy UIComponent TipManager Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx offsetX offsetY tipBackColor tipDelay tipTextColor Accessors _isHeightSet _isWidthSet ...
来源: Laya3.0_api 发布时间: 20231115
...ePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...
来源: Laya_示例 发布时间: 20251209