UnityVersion

Utility class indicating current Unity version.

namespace Sirenix.Utilities
{
[InitializeOnLoadAttribute]
public static class UnityVersion
}

Requirements

Namespace: Sirenix.Utilities
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Static Fields

Return Type Definition Description
int Major The current Unity version major.
int Minor The current Unity version minor.

Static Methods

Return Type Definition Description
bool IsVersionOrGreater(int, int) Tests current Unity version is equal or greater.