docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetPackageInfoForType

    TryGetPackageInfoForType(Type, out string, out string)

    Obtain package informations from a specific type

    Declaration
    public static bool TryGetPackageInfoForType(Type type, out string packageName, out string version)
    Parameters
    Type Name Description
    Type type

    The type used to retrieve package information

    string packageName

    The name of the package containing the given type

    string version

    The version number of the package containing the given type. Only Major.Minor will be returned as fix is not used for documentation

    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)