docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RepackUV

    RepackUV(OccurrenceList, int, bool, int, uint, bool, int, bool)

    Pack existing UV (create atlas)

    Declaration
    public OccurrenceList RepackUV(OccurrenceList occurrences, int channel = 0, bool shareMap = true, int resolution = 1024, uint padding = 2, bool uniformRatio = false, int iterations = 3, bool removeOverlaps = true)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of part to process

    int channel

    The UV channel to repack

    bool shareMap

    If True, the UV of all given parts will be packed together

    int resolution

    Resolution wanted for the final map

    uint padding

    Set the padding (in pixels) between UV islands

    bool uniformRatio

    If true, UV of different part will have the same ratio

    int iterations

    Fitting iterations

    bool removeOverlaps

    Remove overlaps to avoid multiple triangles UVs to share the same pixel

    Returns
    Type Description
    OccurrenceList
    In This Article
    Back to top
    Copyright © 2024 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)