docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method NormalizeUV

    NormalizeUV(OccurrenceList, int, int, bool, bool, bool)

    Normalize UVs to fit in the [0-1] uv space

    Declaration
    public void NormalizeUV(OccurrenceList occurrences, int sourceUVChannel, int destinationUVChannel = -1, bool uniform = true, bool sharedUVSpace = true, bool ignoreNullIslands = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of part to process

    int sourceUVChannel

    UV Channel to normalize

    int destinationUVChannel

    UV channel to store the normalized UV (if -1, sourceUVChannel will be replaced)

    bool uniform

    If true, the scale will be uniform. Else UV can be deformed with a non-uniform scale

    bool sharedUVSpace

    If true, all parts will be processed as if they were merged to avoid overlapping of their UV coordinates

    bool ignoreNullIslands

    If true, islands with null height and width will be ignored and their UV coordinates will be set to [0,0] (Slower if enabled)

    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)