DEV Community

GeneralistProgrammer
GeneralistProgrammer

Posted on

Unity instantiate prefab or gameobjects

So if you have been working on your game. You must have run into this pesky little issue where you need to sometimes spawn enemies, bullets and whatever else to make your game more fun and exciting.

Well to make this happen you will need to understand object pooling, prefab instantiation, and game object to prefab conversion in unity.

If you need to know more, I wrote a full blog post here on how to do all of this.

https://generalistprogrammer.com/unity/unity-2d-instantiate-prefab-at-position/

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay