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

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

541. UI-Tree [ 62%]

...t三种开发语言、LayaAirIDE让项目开发更高效。class UI_Tree { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...

来源: Laya2.0_示例 发布时间: 20251209

542. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 62%]

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

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

543. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...te3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >&gt...

来源: Laya3.0_文档 发布时间: 20251010

544. 计时器-间隔循环 [ 62%]

...开发语言、LayaAirIDE让项目开发更高效。class Timer_Interval { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.s...

来源: Laya2.0_示例 发布时间: 20251209

545. Sprite-节点控制 [ 62%]

...语言、LayaAirIDE让项目开发更高效。class Sprite_NodeControl { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE...

来源: Laya2.0_示例 发布时间: 20251209

546. 视频节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...Script { @property({ type: Laya.VideoNode }) public video: Laya.VideoNode; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 鼠标点击触发播放 Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { L...

来源: Laya3.0_文档 发布时间: 20251010

547. 骨骼动画-适配版Spine [ 62%]

...tat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary { constructor() { this.aniPath = "res/bone/spineboy-pma.skel"; this.index = -1; Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.star...

来源: Laya2.0_示例 发布时间: 20251209

548. Maximum call stack size exceeded [ 62%]

...   'use strict';       class GameMain extends Laya.Scene {         constructor(){             super();               GameMain.instance = this;               Laya.MouseManager.multiTouchEnabled = false;               this.loadScene("main.scene");           }  ...

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

549. laya.d3.core.particleshuriken.ShurikenParticleInstanceSystem_API3.0 [ 62%]

...rikenParticleSystem ShurikenParticleInstanceSystem Implements IClone Index Constructors constructor Properties _geometryElementOBj autoRandomSeed dragConstant dragSpeedConstantMax dragSpeedConstantMin dragType duration gravityModifier isPerformanceMode looping playOnAwake prewarm randomSeed randomiz...

来源: Laya3.0_api 发布时间: 20231115

550. Cannot read property 'load' of null [ 62%]

...null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager...

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