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

大约有 1,451 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)

1181. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 42%]

...e_DrawShapes {         private sp: Sprite;            constructor()         {             Laya.init(500, 300, WebGL);             this.drawSomething();         }            private drawSomething(): void {          ...

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

1182. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 42%]

...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

1183. UI-Slider [ 42%]

...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

1184. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

1185. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...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

1186. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 42%]

...请退出重进 new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor 问题状态 最新活动: 2017-08-25 19:07 浏览: 1653 关注: 1 人 Monica • 2017-08-25 19:55 我这测试也没问题,麻烦上传一个有问题的、可以运行的项目吧。我们看下

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

1187. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

... 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

1188. UI-Button [ 42%]

...)(); 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

1189. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 42%]

...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

1190. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 42%]

...``` ### 二、接着是构造函数: ```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