docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetBakingSessionPadding

    SetBakingSessionPadding(uint, int)

    Change the dilation applied to maps baked from the given session. All maps baked after the call to this function will be affected by the new value. The default value of a newly created session is 2.

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void SetBakingSessionPadding(uint sessionId, int padding)
    Parameters
    Type Name Description
    uint sessionId

    Baking session Id

    int padding

    Number of pixels to fill around baked islands. -1 means infinite dilation.

    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)