Class UnityInfo

Various information about the currently executing Unity player.

Inheritance
System.Object UnityInfo
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx.Unity.Common
Assembly: BepInEx.Unity.Common.dll
Syntax
public static class UnityInfo

Properties

GameDataPath

Path to the game data directory (directory that contains the game assets).

Declaration
public static string GameDataPath { get; }
Property Value
Type Description
System.String

PlayerPath

Path to the player executable.

Declaration
public static string PlayerPath { get; }
Property Value
Type Description
System.String

Version

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.