Show your Support & Get Exclusive Benefits on Patreon (Including Access to this project's Source Files + Code) - / sasquatchbgames
Join our Discord Community! - / discord
In this Unity tutorial, you'll learn how to spawn any object into your scene, and ensure that EVERY single time, they NEVER spawn inside a wall, or in the ground, or on the player, or on top of other enemies (etc.)
I'll show you the same technique we used in our commercial game: Samurado.
Link to Download our FREE 2D Asset Pack:
https://assetpack.sasquatchbstudios.com/
---
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=1100...
---
Unity Selectable Documentation:
https://docs.unity3d.com/2017.4/Docum...
Contents of This Video: ------------------------------------------
00:00 - Introduction and Explanation
01:40 - Detecting When the Playe Enters a Room
03:27 - Get a Random Point Inside a Collider
06:31 - Look for a valid Spawn Position within the collider
09:51 - Improving the check by using a Layermask
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 Veil of Maia! - https://store.steampowered.com/app/19...
Wishlist Samurado!
https://store.steampowered.com/app/23...
Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
Follow us on Twitter for regular updates!
/ sasquatchbgames
#unitytutorial #unity2d #unity3d
On this page of the site you can watch the video online Spawn Objects Like a Commercial Game: NEVER Spawn Objects Into a Wall Ever Again (Unity Tutorial) with a duration of hours minute second in good quality, which was uploaded by the user Sasquatch B Studios 08 June 2023, share the link with friends and acquaintances, this video has already been watched 13,138 times on youtube and it was liked by 549 viewers. Enjoy your viewing!