Dictionary of prefabs in script

Hello all,
I want to generate a Dictionary<int, GameObject> in unity c# script but how do I load all prefabs/GameObjects and control the int key of the position in the dictionary of the respective prefabs.
I want to load the prefabs/gameobject from the prefabs folder.

Hope you can help me and show an small example.
I think that code won’t be so much
I am new in Unity

Thank you!

Hi @LuisKaiser88 ,
Take a look at Unity - Scripting API: Resources.LoadAll for how to load objects of a specified type from subfolders in Resources. You can then populate a Dictionary by running through the Object array returned by Resources.LoadAll but the choice of Dictionary and key will depend upon intended purpose.