docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AutomaticUVMapping

    AutomaticUVMapping(OccurrenceList, int, double, double, bool, bool, uint, uint)

    WARNING: this function is tagged as 'EXPERIMENTAL'
    Generates the texture coordinates and automatically find seams

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void AutomaticUVMapping(OccurrenceList occurrences, int channel = 0, double maxAngleDistorsion = 0.5, double maxAreaDistorsion = -1, bool sharpToSeam = true, bool forbidOverlapping = true, uint resolution = 1024, uint padding = 1)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Part occurrences to process

    int channel

    The UV channel which will contains the texture coordinates

    double maxAngleDistorsion

    Maximum angle distorsion |2PI-SumVtxAng|/2PI

    double maxAreaDistorsion

    Maximum area distorsion before scale to 1. |2DArea-3DArea|/3DArea

    bool sharpToSeam

    If enabled, sharp edges are automatically considered as UV seams

    bool forbidOverlapping

    If enabled, UV cannot overlap

    uint resolution

    Resolution wanted for the final map when repacking at the end

    uint padding

    Set the padding (in pixels) between UV islands when repacking at the end

    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)