docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateIndexMapFromOccurrences

    CreateIndexMapFromOccurrences(OccurrenceList, int, bool)

    Create an IndexMap and add an UVSet so that each mesh will have UVs refering to one different pixel of the index map and that pixel will have the value i for occurrences[i]. Warning: all occurrences will be singularized

    Declaration
    public uint CreateIndexMapFromOccurrences(OccurrenceList occurrences, int uvChannel, bool createTexture1D)
    Parameters
    Type Name Description
    OccurrenceList occurrences
    int uvChannel
    bool createTexture1D

    If true, the texture will have a resolution of 1 x occurrences.size, else a square power of two image will be created to fit occurrences.size pixels

    Returns
    Type Description
    uint
    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)