docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateVertexWeightsFromVisibilityAttributes

    CreateVertexWeightsFromVisibilityAttributes(OccurrenceList, double, double)

    Use visibility attributes on meshes of the given occurrence to create vertex weights attributes used by the decimation functions. The finals weights will be computed with w = offset + (visibility/maxVisibility) * scale

    Declaration
    public void CreateVertexWeightsFromVisibilityAttributes(OccurrenceList occurrences, double offset = 0, double scale = 1)
    Parameters
    Type Name Description
    OccurrenceList occurrences

    Occurrences of components to process

    double offset

    Offset value for weight computation

    double scale

    Scale value for weight computation

    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)