UnityVersion

data class UnityVersion(val year: Int, val major: Int, val minor: Int, val patch: String)

Data class to represent the Unity version.

This class encapsulates the components of a Unity version, which typically includes the year, major version, minor version, and an optional patch version suffix.

Parameters

year

The year of the Unity version, represented as a 4-digit integer.

major

The major version number, represented as an integer.

minor

The minor version number, represented as an integer.

patch

The patch version with optional suffix, represented as a string.

Constructors

Link copied to clipboard
constructor(year: Int, major: Int, minor: Int, patch: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val major: Int
Link copied to clipboard
val minor: Int
Link copied to clipboard
Link copied to clipboard
val year: Int

Functions

Link copied to clipboard
open override fun toString(): String

Converts the UnityVersion object to a string in the format "YYYY.M.mfX".