IsMaterial()

Syntax

Result = IsMaterial(#Material)
Description
Tests if the given material is valid and correctly initialized.

Parameters

#Material The material to test.

Return value

Nonzero if the material is valid, zero otherwise.

Remarks

This function is bulletproof and may be used with any value. This is the correct way to ensure a material is ready to use.

Supported OS

All

<- GetScriptMaterial() - Material Index - MaterialBlendingMode() ->