Resource.Load always return null


I’m new on Unity, Im trying to change the Material in C#, so I dont need to recreate the renders. The problem is Resources.Load ALWAYS return NULL, how can I get the Material?

I’m attaching mi Unity project and the Mono Project screenshot.




In order properly use Resources.Load method, your resources must be inside Assets\Resources folder. You need to create Resources folder and copy/move Materials folder into it. Additionally, according to documentation, path passed to the method must be relative to Resources folder, so in your case must start with Materials…

You can only load assets using the Resources-class if the assets you’re trying to load are in a Resources folder.

All Assets in any Resource folder are automatically included in the build, so don’t keep unneeded stuff there.