- Home /
Question by
reefwirrax · Nov 10, 2013 at 11:37 AM ·
resources.load
resources.load material JavaScript
Neither of the 2 following lines later material, although they both run without any null reference exception:
mymaterial = Resources.Load("green tiles 1", typeof(Material)) as Material;
mymaterial = Resources.Load("green tiles 1" as Material;
do I have to reference the folder of the material?
Comment
Best Answer
Answer by reefwirrax · Nov 10, 2013 at 12:28 PM
have to place it in the(/a subfolder copy) folder called resources and remember to state the subfolder as well.
Your answer
![](https://koobas.hobune.stream/wayback/20220613121557im_/https://answers.unity.com/themes/thub/images/avi.jpg)