Version 3.3.1.2

UnityVersion class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class UnityVersion
Utility class indicating current Unity version.
Inheritance
  • System.Object
  • UnityVersion

Fields

Major
The current Unity version major.
public static readonly int Major
Minor
The current Unity version minor.
public static readonly int Minor

Methods

IsVersionOrGreater(Int32, Int32)
Tests current Unity version is equal or greater.
public static bool IsVersionOrGreater(int major, int minor)
Parameters
System.Int32 major

Minimum major version.

System.Int32 minor

Minimum minor version.

Returns
System.Boolean

true if the current Unity version is greater. Otherwise false.