Class PackageVersion | Anime Toolbox | 0.4.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class PackageVersion

    A class that holds the version (semantic versioned) of a package in a structure

    Inheritance
    Object
    PackageVersion
    Namespace: Unity.AnimeToolbox.Editor
    Syntax
    public class PackageVersion

    Constructors

    PackageVersion()

    Declaration
    public PackageVersion()

    PackageVersion(String)

    Declaration
    public PackageVersion(string semanticVer)
    Parameters
    Type Name Description
    String semanticVer

    Fields

    AdditionalMetadata

    Declaration
    public string AdditionalMetadata
    Field Value
    Type Description
    String

    Lifecycle

    Declaration
    public PackageLifecycle Lifecycle
    Field Value
    Type Description
    PackageLifecycle

    Major

    Declaration
    public int Major
    Field Value
    Type Description
    Int32

    Minor

    Declaration
    public int Minor
    Field Value
    Type Description
    Int32

    Patch

    Declaration
    public int Patch
    Field Value
    Type Description
    Int32

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    TryParse(String, out PackageVersion)

    Parse a semantic versioned string to a PackageVersion class

    Declaration
    public static bool TryParse(string semanticVer, out PackageVersion packageVersion)
    Parameters
    Type Name Description
    String semanticVer

    Semantic versioned input string

    PackageVersion packageVersion

    The detected PackageVersion. Set to null when the parsing fails

    Returns
    Type Description
    Boolean

    true if successful, false otherwise

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023