Jobs System Line of Sight Checking | AI Series Part 40 | Unity Tutorial #shorts @LlamAcademy
Jobs System Line of Sight Checking | AI Series Part 40 | Unity Tutorial #shorts  @LlamAcademy
Uploaded July 2022 | Updated September 2026, 2 hours ago
Full Tutorial on YouTube: youtu.be/dHLNqbKrJdg

Learn how you can implement the jobs system to improve the performance of Line of Sight checking for your AI!

In this Unity Tutorial you'll see the comparisons of the typical ways you might see line of sight implemented:
1. EnemyLineOfSightChecker.cs attached to each Enemy (worst performance, most likely this is what you'd start with)
2. EnemyLineOfSightManager.cs - Checking Line of Sight for all Enemies in a single Update() loop (better performance, but can be improved)
3. EnemyLineOfSightManager.cs - Checking Line of Sight via the Jobs system (best performance for large numbers of enemies!)

In this tutorial repository, all 3 methods are available for you to compare on your hardware.
You'll see that the jobs system is not a magic bullet, it solves specific problems such as tasks that can be highly parallelized. You can also use this to determine at which points the parallelization is more helpful than harmful (or just unnecessarily adds code complexity)!

As always, all code from this video is available on GitHub: github.com/llamacademy/ai-series-part-40

As usual with the AI Series, we're using the NavMesh Components: docs.unity3d.com/Manual/NavMesh-BuildingComponents.html not the built-in navigation system.

📚 Resources:
⚫ Jobs System Manual: docs.unity3d.com/Manual/JobSystemOverview.html
⚫ Spherecast Command: docs.unity3d.com/ScriptReference/SpherecastCommand.html
⚫ Allocator Types: docs.unity3d.com/Manual/JobSystemNativeContainer.html
⚫ Unity Performance: docs.unity3d.com/Manual/BestPracticeUnderstandingPerformanceInUnity8.html

📱 Let's stay connected
YouTube: youtube.com/c/LlamAcademy
Patreon: patreon.com/LlamAcademy
Facebook: facebook.com/LlamAcademyOfficial
Twitter: twitter.com/TheLlamAcademy
TikTok: tiktok.com/@LlamAcademy
Instagram: instagram.com/LlamAcademy

----

Believe in LlamAcademy's mission and have received value from the videos? Consider becoming a Patreon supporter: patreon.com/llamacademy

----
Most tutorials come from knowledge gained making https://survival.llama.software Llama Survival - a top-down zombie survival shooter for Android and iOS.
I also have some Unity Assets (affiliate link): assetstore.unity.com/publishers/22409?_aid=1101l9QvC

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #unity3d #llamacademy #gamedevelopment #ai
Jobs System Line of Sight Checking | AI Series Part 40 | Unity Tutorial #shortsExplosive and Frost Round Configurations | Gun Series 9 | Unity TutorialUsing the Blackboard in Unity Behavior | Unity TutorialPhysic Materials, Explained. | Unity TutorialAccurate Aiming Options Discussed & Implemented | Gun Series 7 | Unity Tutorial #shortsUnity Muse Animate: A First Look, Impressions, and Test PromptsRuntime UI Data Binding with UI Toolkit | Unity Tutorial4 Unity Destruction Libraries Compared - Which is best for you? #shortsInheritance and Interfaces for Beginners | Unity C# Basics 6 | Unity Tutorial #shortsWhen (and how) to use Templates and Custom Controls in UI Toolkit | Unity TutorialRagdoll on Death NavMeshAgents | AI Series Part 39 | Unity TutorialUsing the NEW Unity Content Directory | Unity Tutorial
LlamAcademy |

Jobs System Line of Sight Checking | AI Series Part 40 | Unity Tutorial #shorts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER