docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BakeMaterialPropertyMap

    BakeMaterialPropertyMap(uint, string, int, ColorAlpha?)

    Baking of custom material properties

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public ImageList BakeMaterialPropertyMap(uint sessionId, string propertyName, int nComponents = 3, ColorAlpha? defaultColor = null)
    Parameters
    Type Name Description
    uint sessionId

    Baking session Id

    string propertyName

    Name of the material property to bake (must be a color, a coeff or a texture)

    int nComponents

    Expected number of components per pixel for the resulting maps

    ColorAlpha? defaultColor

    Color used for filling unbaked texels

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