I have a string name “MaterialA” (it’s variable is not a gameObject), How can I find the path from that?
- you can have two or more materials with the same name in different folders, so result of searching can be wrong
- if you have no references to this material in project, you will not able to use it in build, cause it will not be included in build package
- use Resources folder to store assets you need not at the moment but will need later