Version 2.1.0.0

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.

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.