UMaterial::HasAnyExpressionsInMaterialAndFunctionsOfType

Checks if the material contains an expression of the requested type, recursing through any function expressions in the material