Introduction
After spending some years in Game Industry, I realize managing prefabs and make them pool is a major and necessary module of each game.As, instantiating and destroying calls are really expensive at runtime. So, due to this, it is better to pool instantiated objects and recycle them after use, for future.
Purpose
In Unity projects, programmers have to instantiate and destroy various GameObjects at runtime like enemies, particles, powerups, health boxes etc. So, it is better to pool them and recycle them.
Features
- Easily pool GameObjects in your game
- Promotes the use of pooling concept
- Auto scale your pool
- Prefab manager to spawn and recycle
- Improve the performance of your game
- Place prefabs anywhere in Assets/ and just place a reference in PrefabManager
- Maintains hierarchy under PrefabManager
- Select when you want to create your pool on Awake, Start or Manually
- Still you can update the data of the newly spawned objects
- Easy to use, Plug n play
- Open Source code without any DLL
Usage
- Import plugin
- Add enum against your prefab in PrefabType.cs
- Add respective prefab reference in PrefabManager.prefab
- Now, just drag PrefabManager.prefab to hierarchy view and call its public functions
Remember
- Drag PrefabManager.prefab in the first scene and it will persist
Special Thanks
- All the users who provide feedback and suggestions to improve
- All the users who gave reviews on Asset store
No comments:
Post a Comment
Your valuable comments are appreciated...!