Unity 2D Spawner

Hi there, will this also work within a 2D project?

Hey there, no reason all of the networking wouldn’t work with a 2D project. You would have to make some adjustments to how the game works, but mirror itself should be compatible.

thanks for all the answers, also in the other threads mate :slight_smile:

my questions is espacially regarding the spawning part as I recreated it for my 2D game, but it is not yet working, so I am asking myself if I just did somethign wrong or if it is just not for 2D / needs a lot of changes

Are you asking about the spawn method in Mirror? Or about the instantiate method? Which part isn’t working for you? Is the game object not appearing in the hierarchy?

lection 16 of the course “spawning units”

and indeed, is not appearing in the hierarchy…

to be a bit more precise, the spawner is appearing, but it is just looking cool, doing nothing. there probably is only a stupid error, but please find attached some sceenshots, maybe you see something…

*I saw there was no collider and added it, but that was not it

The unit prefab is set to Unit Spawner instead of unit. What behaviour is it not doing that it should be doing?

Privacy & Terms