Object Pooling optimizes projects by reusing pre-instantiated GameObjects, reducing CPU burden from repetitive creation and destruction. This design pattern is crucial for top-down shooter games, like Space Shooter, with frequent bullet operations, ensuring smoother gameplay and improved performance. Efficient resource utilization and recycling mechanisms make Object Pooling an essential practice for game developers. Download this unitypackage or go to this folder.
Object.Pool.mp4
Download this unitypackage or go to this folder.
- Attach RagdollComponent to your character in Unity.
- Populate Ragdoll Rigidbodies and Ragdoll Colliders lists in the Inspector.
- During gameplay, call SetRagdollActive(bool active) to enable or disable ragdoll physics.
Ragdoll.-.LQ.mp4
This class can be used to invert a mask in Unity. To use it, simply add this component to your masked object instead of the unity Image component. Here is a package with a sample scene.
Extentions contains extensions to make development easier.
ShakeOnTrigger is a shake animation. How it Works:
- Attach the ShakeOnTrigger script to your desired GameObject.
- Set your preferred values for Shake Duration, Shake Power, and Vibrate Count in the Inspector.
- Watch the magic happen! When another collider enters the trigger zone, the object shakes vibrantly, adding a touch of dynamism to your scene.