docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MergeUVIslands

    MergeUVIslands(OccurrenceList, int, double, double, double, double, double, MaxTransformationType, bool)

    Minimizes the number of seams in the UV mapping

    Declaration
    public void MergeUVIslands(OccurrenceList occurrences, int channel = 0, double scaleWeights = 0, double maxScaleVariationFactor = 1.2, double curvatureWeights = -1, double usePolygonsWeights = 1, double useVerticesWeights = -1, MaxTransformationType maxTransformationType = MaxTransformationType.Similarity, bool allowUVInversion = false)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of part to process

    int channel

    UV channel to merge

    double scaleWeights

    Weight to assign to scale for the merging priority

    double maxScaleVariationFactor

    Maximum scaling factor allowed, -1 meaning no limits

    double curvatureWeights

    Weight to assign to curvature for the merging priority

    double usePolygonsWeights

    Use polygons weights to prioritize seams between polygons with less weight. The value represents the feature weight

    double useVerticesWeights

    Use vertices weights to prioritize seams where vertices with less weight. The value represents the feature weight

    MaxTransformationType maxTransformationType

    Maximum transformation allowed: TRS only, affine and perspective

    bool allowUVInversion

    Allow merged UVs to be inverted

    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)