How to get all Materials on selected Object with Rendering Mode Transparent?

Hi, I want to get all Materials on a selected Objects (also all child objects) where the Rendering Mode is Transparent. How can I check if the RenderingMode == Transparent.

I couldn’t find any solution online.

Thanks in advance

So, its actually really easy. You get the Renderer and from that the materials and then you can call .getFloat(_Mode). Every renderer mode represents an index, so for Opaque it would be 0 and so on.