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?

1 Answer

1

have to place it in the(/a subfolder copy) folder called resources and remember to state the subfolder as well.