In this Unity tutorial we're going to look at how to detect whether game objects are on screen or not.
We’ll make sure that the player is blocked from leaving the screen bounds.
If the enemies wander off screen, we’ll make them wander back into view.
And when the bullets leave the screen, we’ll destroy them.
This is the ninth video in our series showing how to make a full top down 2D shooter game in Unity.
The playlist for this series can be found here
► • Unity 2D Top Down Shooter for Beginners
The project files are available to our patrons here:
► / 80357698
Want to follow along? This project is a good starting point
► / 78946679
The final script can be found here
► https://dotnetfiddle.net/FlPuDt
Help support our work:
► Patreon: / ketragames
Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon: / ketragames
► Twitter: / ketragames
► Facebook: / ketragames
Introduction - 0:00
Preventing the Player from Leaving the Screen - 00:40
Turning the Enemies Around If They Go off Screen - 05:36
Destroying Bullets When They Go off Screen - 08:29
Summary - 10:23
#KetraGames #LearnUnity #UnityTutorials #UnityTips
Watch video Detecting Screen Bounds (Unity Tutorial | 2D Top Down Shooter) online, duration hours minute second in high quality that is uploaded to the channel Ketra Games 22 March 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 9,642 times and liked it 191 visitors.