Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.01 KB

material-palette-asset.rst

File metadata and controls

35 lines (26 loc) · 1.01 KB

Material Palette Assets

The MaterialPaletteAsset type allows an object to have multiple potential materials that it can use. A random material from the material palette is chosen every time the object is spawned in the level editor. In the level editor, material palettes can also be manually assigned to a selected object.

Metadata

GUID 32-digit hexadecimal: Refer to GUID <doc_data_guid> documentation.

Type string: SDG.Unturned.MaterialPaletteAsset

Material Palette Properties

Materials array of Master Bundle Pointer <doc_data_masterbundleptr> dictionaries: Each dictionary in the list should point to a material bundled in Unity.

"Asset"
{
    "Materials"
    [
        {
            "Name" "core.masterbundle"
            "Path" "Objects/Material_Palettes/House/House_00.mat"
        }
        {
            "Name" "core.masterbundle"
            "Path" "Objects/Material_Palettes/House/House_01.mat"
        }
    ]
}