🤔

Resource paths#

Guidelines for paths used by the Resources API:

See Resources.Load for more usage information.

Example#

Assets/
├── ...
├── Resources/
│   ├── Missiles/
│   │   ├── PlasmaGun.prefab
│   │   └── ...
│   └── ...
└── ...
// 🟢 Correct
var plasmaGun = Resources.Load<GameObject>("Missiles/PlasmaGun");

// 🔴 Incorrect
var plasmaGun = Resources.Load<GameObject>("Assets/Resources/Missiles/PlasmaGun.prefab");