Help with puzzle building

Hello all!

I am here seeking help on a problem I have regarding simultaneous instancing from the perspective of coding in Unity. I have a game I am working on that requires puzzles to be built in a certain, grid-like order. I currently have implemented a script that instantiates my a single prefab that I provide it through the inspector in a grid formation. I need to have a script that looks up a certain prefab every time it lays one down because they will all be different. What is the best way to go about this?

Thank you community,
Alex V

I’m not 100% sure by what you mean when you say “looks up a certain prefab every time”. Can you be more specific? It sounds like you are looking for object pooling/spawning (I personally use DarkTonics CoreGamekit: Unity Asset Store - The Best Assets for Game Making ). There are some good solutions out there that will do this for you, but to elaborate on what you are looking for I think we need a little more detail. Describe it a little better and I will try to show you an example if I can :slight_smile:

Thanks!