docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GenerateRedirect

    GenerateRedirect(string, string, string, string)

    Generate the a site which will redirect to the latest version for a package.

    By default, the documentation folders will be generated in /Users/USER_NAME/Library/Application Support/Unity/Editor/documentation/packages on Mac C:\Users\USER_NAME\AppData\Local\Unity\Editor\documentation\packages on Windows

    Declaration
    public void GenerateRedirect(string packageName, string latestVersionId, string outputFolder = null, string absoluteLatestShortVersionId = "")
    Parameters
    Type Name Description
    string packageName

    eg: com.unity.package-manager-ui

    string latestVersionId

    Version in Semantic version format that the site will redirect to -- eg: 1.2.0

    string outputFolder

    (Optional) Output folder where the doc site should be created.

    string absoluteLatestShortVersionId

    Short version id of the latest available package, including preview. Used to link to latest preview version of a package. eg: 1.4.0-preview

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