Class UnityInfo
Various information about the currently executing Unity player.
Namespace: BepInEx.Unity.Common
Assembly: BepInEx.Unity.Common.dll
Syntax
public static class UnityInfo
Properties
Path to the game data directory (directory that contains the game assets).
Declaration
public static string GameDataPath { get; }
Property Value
| Type | Description |
|---|---|
System.String |
Path to the player executable.
Declaration
public static string PlayerPath { get; }
Property Value
| Type | Description |
|---|---|
System.String |
Version of the Unity player
Declaration
public static UnityVersion Version { get; }
Property Value
| Type | Description |
|---|---|
UnityVersion |
Remarks
Because BepInEx can execute very early, the exact Unity version might not be available in early bootstrapping phases. The version should be treated as an estimation of the actual version of the Unity player.