docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BakeMaterials

    BakeMaterials(PiXYZAPI, OccurrenceList, uint, int, int, bool, BakingMethod, BakeMapList, double)

    Process to bake materials from a source object to an other object in a pixyz environment

    Declaration
    public static uint BakeMaterials(PiXYZAPI api, OccurrenceList sourceOccurrences, uint targetOccurrence, int resolution, int padding, bool applyMaterial, BakingMethod method, BakeMapList maps, double tolerance = -1)
    Parameters
    Type Name Description
    PiXYZAPI api

    The api on which pixyz calls will be made

    OccurrenceList sourceOccurrences

    The source from where the data will be retrieved

    uint targetOccurrence

    The target on which the gathered data will be applied

    int resolution

    The resolution of all maps that will be produced

    int padding

    the padding between uv islands in textures

    bool applyMaterial

    Should the materials created be applied on parts

    BakingMethod method

    The baking method that will be used (ray, proj, ray and proj)

    BakeMapList maps

    The map type that will be baked

    double tolerance

    Tolerance of the projection for baking from source to destination

    Returns
    Type Description
    uint

    Returns the id of the baked material

    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)