Find BaseMaterial that owns a BaseShader?
-
Hi,
I have the pointer to a
BaseShaderin my scene. Now I'd like to get the pointer to theBaseMaterialthat holds the shader. How can I do that?Cheers,
Frank -
GetMain() should do the trick
-
Oh, never noticed that. Thanks, I'll try that!

-
hi,
Confirmed, thanks @mp5gosu.
That also work if the shader is inside another shader.
Cheers,
Manuel