docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FillUnusedPixels

    FillUnusedPixels(uint, ColorAlpha?, int, uint, bool)

    Fill unused pixels by propagating and averaging used pixels

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public uint FillUnusedPixels(uint image, ColorAlpha? unusedColor = null, int size = -1, uint validityMask = 0, bool inPlace = false)
    Parameters
    Type Name Description
    uint image

    Image to process

    ColorAlpha? unusedColor

    Color used to identify unused pixels

    int size

    Dilation size in pixels

    uint validityMask

    Image describing which texels are valid (color set to white) and which ones need to be filled (color set to black). If zero, unusedColor is used instead.

    bool inPlace

    If True, the source image is modified. Otherwise, a new one is created

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