docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct OSVersion

    Represents a version number consisting of major, minor, and point components. Version numbers are often written as Major.Minor.Point.

    Implements
    IEquatable<OSVersion>
    IComparable<OSVersion>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARKit
    Assembly: solution.dll
    Syntax
    public struct OSVersion : IEquatable<OSVersion>, IComparable<OSVersion>

    Constructors

    Name Description
    OSVersion(int, int, int)

    Constructs a new version number.

    Properties

    Name Description
    major

    The major version component.

    minor

    The minor version component.

    point

    The point version component.

    Methods

    Name Description
    CompareTo(OSVersion)

    IComparable interface. This is useful for sorting routines.

    Equals(object)

    Compares for equality.

    Equals(OSVersion)

    Compares for equality. The three version components are compared against other's.

    GetHashCode()

    Generates a hash code suitable for use in a HashSet or Dictionary.

    Parse(string)

    Parses a string which contains a version number of the form X.Y.Z somewhere in the string. If multiple such substrings exists, the first is used. The parser stops when either 3 components have been identified, or when fewer than 3 components have been identified and the next character is not a period (".") or a digit (0-9). If version is null or the empty string, this method returns the version 0.0.0

    ToString()

    Generates a string representation of the version.

    Operators

    Name Description
    operator ==(OSVersion, OSVersion)

    Tests whether lhs is the same version as rhs. This is the same as Equals(OSVersion).

    operator >(OSVersion, OSVersion)

    Tests whether lhs is a later version compared to rhs.

    operator >=(OSVersion, OSVersion)

    Tests whether lhs is the same or a later version compared to rhs.

    operator !=(OSVersion, OSVersion)

    Tests whether lhs is a different version from rhs.

    operator <(OSVersion, OSVersion)

    Tests whether lhs is an earlier version compared to rhs.

    operator <=(OSVersion, OSVersion)

    Tests whether lhs is the same or an earlier version compared to rhs.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023