Hi there i am busy trying to get all files from my unity folders (Models, sounds etc) and store them in an array but i just cant get it to happen at all. The main reason i want to do this, Is i am busy creating a set of tools for our designers but just cant figure this out
I did have objects as a list but that did not work either so right now it is just an array of type Object;
void OnGUI()
{
if(GUILayout.Button("Refresh list"))
{
string newFolderPath = AssetDatabase.GUIDToAssetPath("Assets");
objects = AssetDatabase.LoadAllAssetsAtPath(newFolderPath);
SearchModels();
}
}
void SearchModels()
{
Debug.Log("In Search Models now ");
for (int i = 0; i < objects.Length; i++)
{
foreach (GameObject go in objects)
{
Debug.Log("We have 1" + go.name);
}
}
}