void Start()
{
object candies = Resources.LoadAll(“Prefabs”);
Debug.Log(“candies.Length:” + candies.Length);
}
i need to load prefabs from my “Prefabs” directory, im adding a screen shot
Resources can only locate prefabs and other things in folders called: “Resources”, so if you want a to load all prefabs in “Prefabs”-folder, then create a new folder called “Resources” and add the “Prefabs”-folder to the newly created “Resources”-folder.
Taken directly from the documentation:
Loads all assets in a folder or file
at path in a Resources folder.