⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Material.GetVariant

Material GetVariant(int variantIndex)

This retreives the variant assigned to the specified variant index. Null is the default value for variants, and it’s not valid to ask for variant 0 (already the current Material).

   
int variantIndex The variant to retreive. 0 is already the current material, and an invalid index here. SK has a max of 4 total variants, including the default.
RETURNS: Material The Material variant, or null.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!