大约有 1,451 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)
Laya3.0_api(470) Laya_社区(447) Laya_示例(152) Laya2.0_示例(119) Laya2.0_api(71) Laya2.0_文档(71) Laya3.0_文档(63) laya_api(58)
...e_DrawShapes { private sp: Sprite; constructor() { Laya.init(500, 300, WebGL); this.drawSomething(); } private drawSomething(): void { ...
来源: Laya2.0_文档 发布时间: 20210715
...roperty 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaug...
来源: Laya_社区 发布时间: 20180307
...andler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Slider { constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCol...
来源: Laya_示例 发布时间: 20251219
...operty } = Laya; @regClass() export class UI_VSlider extends Laya.Script { constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("vslider.png", "vslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSli...
来源: Laya3.0_文档 发布时间: 20251010
...operty } = Laya; @regClass() export class UI_HSlider extends Laya.Script { constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("hslider.png", "hslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSli...
来源: Laya3.0_文档 发布时间: 20251010
...请退出重进 new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor 问题状态 最新活动: 2017-08-25 19:07 浏览: 1653 关注: 1 人 Monica • 2017-08-25 19:55 我这测试也没问题,麻烦上传一个有问题的、可以运行的项目吧。我们看下
来源: Laya_社区 发布时间: 20170825
... class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loa...
来源: Laya2.0_文档 发布时间: 20210714
...)(); function onUIAssetsLoaded() { for (var i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...
来源: Laya_示例 发布时间: 20251219
...vate counter: Clip; private currFrame: number; private controller: Button; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...
来源: Laya2.0_文档 发布时间: 20210714
...``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init(); // 使用高精度位置 Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this...
来源: Laya2.0_文档 发布时间: 20210714