- Home /
Grabbing adjacent object references on a grid
Hi everyone. I started learning Unity early this year, and I am currently playing around with making 2D puzzle games. A couple of my projects incorporate a grid of sprite/image objects, and in my scripts I am trying to grab references to adjacent objects in the grid. The way I'm doing it right now is to put colliders on all the objects on the grid, and use overlap methods to grab the object reference from the collider at a given point. My question is, is there a better way to do it? Because using colliders this way seems inefficient to me.
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                