Skip to content
目录

类App

应用。

继承

属性

container

获取DOM容器。 HTMLDivElement 类型。

basePath

获取根路径。 string 类型。

projectFile

项目文件地址。 string 类型。

licenseFile

授权文件地址。 string 类型。

canvas

画布。 HTMLCanvasElement 类型。

cameraMgr

相机管理器。 CameraMgr 类型。

effectMgr

效果管理器。 EffectMgr 类型。

levelMgr

层级管理器。 LevelMgr 类型。

eventMgr

事件管理器。 EventMgr 类型。

loaded

是否已加载。 boolean 类型。

options

选项。 AppOptions 类型。

cursor

获取或设置指针样式(与CSS一致)。 string 类型。

allComponents

获取所有组件对象。 Component 数组类型。

方法

load

typescript
async load(): Promise<void>;

加载项目。异步方法。

异步返回 void 类型。

无参数。

getEntityById

typescript
getEntityById(id: string): Entity | undefined;

根据ID获取实体对象。

返回实体对象, Entity 类型,为空返回 undefined

技术支持:13352865103(柯工,微信同号);18688783852(柯工)