Skip to content

Home > @esengine/ecs-framework-monorepo > Core > getScene

Core.getScene() method

获取当前活动的场景(方法调用)

Signature:

typescript
static getScene<T extends IScene>(): T | null;

Returns:

T | null

当前场景实例,如果没有则返回null

基于 MIT 许可证发布