Api

RunutilsGameenv

OpenAPI > RunUtils > gameEnv

OpenAPI.RunUtils.gameEnv property

当前游戏环境

0-编辑器

1-PC

2-WEB

Signature:

static get gameEnv(): number;

Example

const gameEnv = OpenAPI.RunUtils.gameEnv // 返回当前游戏环境

Copyright © 2021 - 2025