How to check whether a material is some other materials child part or not & which is that parent material