UMaterial::GetAllExpressionsInMaterialAndFunctionsOfType

Get all expressions of the requested type, recursing through any function expressions in the material