I have NO idea how to do this

So i made a plan on how my game is gonna work and well…
ive came up with an idea but i dont know how its gonna work … here let me explain it to you … With a picture :>

So basicly i want to be able to spawn the selected prefab.

if switch selection switch the prefab to spawn

Keep your prefabs in an array and instantiate them by array index. You can drive your list with the same array, using the prefab’s name.