Home > @esengine/ecs-framework-monorepo > Core > getGlobalManager
Core.getGlobalManager() method
获取指定类型的全局管理器
Signature:
typescript
static getGlobalManager<T extends GlobalManager>(type: new (...args: unknown[]) => T): T | null;
Parameters
Parameter | Type | Description |
---|---|---|
type | new (...args: unknown[]) => T | 管理器类型构造函数 |
Returns:
T | null
管理器实例,如果未找到则返回null