-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Mohsin Khan edited this page Apr 2, 2021
·
3 revisions
Welcome to the PrefabManager wiki!
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 the future.
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.
- 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
- Show count of pool in the editor
- Check for duplicate entries in the list and highlight with red background
- 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
- 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
- [Update] Just maintain the asset file (PrefabData.asset)
- Drag PrefabManager.prefab in the first scene and it will persist
- Do suggest/recommend new features
- All the users who provided feedback and suggestions to improve
- All the users who gave reviews on the Asset store