Method CombineMaterials
CombineMaterials(OccurrenceList, BakeOption, bool, bool)
Combine materials found on occurrences subtrees into one baked material and assign it to part occurrences
Declaration
[HandleProcessCorruptedStateExceptions]
public void CombineMaterials(OccurrenceList occurrences, BakeOption bakingOptions, bool overrideExistingUVs = true, bool singularizeOnAO = false)
Parameters
Type | Name | Description |
---|---|---|
OccurrenceList | occurrences | Root occurrences to process |
BakeOption | bakingOptions | Baking options |
bool | overrideExistingUVs | If true, use axis-aligned bounding box mapping to regenerate new UVs, instead of repacking existing ones from channel 0 |
bool | singularizeOnAO | If true, singularize all instances in the selected subtree if we want to bake AO in the texture |