docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FetchBakedMap

    FetchBakedMap(uint, uint, uint, uint)

    Returns information about one texel of a baked map (occurrence, polygon ID, parametric coordinates, material ID). Must be called inside a (begin/end)BakingSession block.

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public BakedValue FetchBakedMap(uint sessionId, uint x, uint y, uint mapId = 0)
    Parameters
    Type Name Description
    uint sessionId

    Baking session Id

    uint x

    X coordinate of the map pixel to fetch

    uint y

    Y coordinate of the map pixel to fetch

    uint mapId

    Id of the map to fetch, if several are available

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