Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
Join our Discord Community! - / discord
By the end of this Object Pooling tutorial, We will have replaced a projectile spawn setup from a simple Instantiate and Destroy setup, to an advanced object pooling system in Unity.
There is a LOT to learn here, and by the end you will understand:
How to use Unity's built-in Object Pooling solution from start to finish.
Analyzing and reading the profiler so you can dig into memory issues.
How object pools work, and how to set them up for a variety of types of objects (including particle systems!)
What kinds of problems we can expect to see when we replace Instantiate and Destroy setups to object pooling, and how to fix them.
I cover a lot here, so we're going to make this fast!
Link to Download the FREE 2D Asset Pack seen in this tutorial:
https://veilofmaia.com/tutorial-asset...
---
In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: https://assetstore.unity.com?aid=1100lwgBQ
---
Credits-----------------------------------------------------
Unity Order of Execution:
https://docs.unity3d.com/Manual/Execu...
Contents of This Video: ------------------------------------------
00:00 - Intro + Scene Explanation
01:17 - Analyzing the FPS and the Profiler
02:18 - Showing Where The Instantiate and Destroy Calls Are - So We Know How to Replace Them
03:35 - Setting Up the Projectile Object Pool Functionality
11:08 - Pool, Collection Check, Default and Max Capacity Explained
15:00 - Replacing Instantiate and Testing
15:48 - Replacing the Destroy Call
17:19 - Fixing Projectiles So They Work Properly With the Object Pooling System
19:47 - Setting Up the Particle Object Pool Functionality
23:43 - Replacing the Particle's Instantiate and Destroy Calls
26:30 - Improving the FindGameObjectWithTag Call
28:05 - Checking FPS and Profiler After the Switch to Object Pool
Who We Are-------------------------------------
If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
Wishlist our Games:
Wishlist Samurado on Steam! - https://store.steampowered.com/app/23...
Wishlist Veil of Maia! - https://store.steampowered.com/app/19...
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Follow us on Twitter for regular updates!
/ sasquatchbgames
#unitytutorial #unity2d #unity3d
Watch video How to Setup An Object Pool (New Built In Method) | Unity Tutorial online, duration hours minute second in high quality that is uploaded to the channel Sasquatch B Studios 26 January 2023. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 13,469 times and liked it 338 visitors.