My game was working perfectly, defenders were spawning where I clicked, snapping to grid properly. But after setting up the canvas on the Buttons, and added the star cost Text UI and coding them up, the Snapping to grid completely broke. I’ve tried deleteing all the changes I made to the buttons, didn’t fix anything. I’ve checked, double checked and resorted to just copy and pasting directly from Ben’s code. I’ve compared all my transforms, game camera, settings etc in Ben’s finished game to my game, everything appears to be identical. I’ve even imported in his prefabs for the level canvas, the buttons, core game , the defenders etc and its still not fixing my spawning
any ideas?
I can;t think of any reason why it would still be broken after basically replacing everything i did on my own with Ben’s working assets. I feel like it was basically completed, now its a totally useless program.
EDIT: Just a bit more info on the problem: its allowing defenders to spawn on top of each other too, also sometime off the core game canvas as well.