Visualize Raycasts, Paths, and More in the Scene View with Editor Scripting | Unity Tutorial #shorts @LlamAcademy
Visualize Raycasts, Paths, and More in the Scene View with Editor Scripting | Unity Tutorial #shorts  @LlamAcademy
Uploaded October 2022 | Updated September 2026, 4 hours ago
Full Tutorial: youtu.be/0q114vTBjB4

Learn how to extend an existing Inspector in the Unity Editor and draw debug information in the Scene View!

In this unity tutorial you will learn how you can start visualizing hard-to-debug information in the Scene View and the Inspector to help you understand exactly what's happening in your script and track down problems fast!

We'll do some simple editor scripting to:
⚫ Show some new controls on the Inspector that toggle on/off the Scene View visualization.
⚫ Show the path and current velocity of a NavMeshAgent in the Scene View
⚫ Show the health of an Enemy in the Scene View
⚫ Show the line of sight raycasts in the Scene View and mark which object is obstructing line of sight.
⚫ Show line of sight information in the Inspector
⚫ Allow clicking in the inspector on an object to ping it in the hierarchy and focus it in the scene view. Optionally with 1 line of code removed you can also select it)

I know it sounds like a lot, but it's actually pretty easy as you'll see in this introduction video

As always, all code from this video is available on GitHub: github.com/llamacademy/scene-inspector-debug-information

📚 Resources 📚
⚫ Handles API: docs.unity3d.com/ScriptReference/Handles.html
⚫ EditorGUIUtility.GetControlID: docs.unity3d.com/ScriptReference/GUIUtility.GetControlID.html
⚫ Custom Editors: docs.unity3d.com/Manual/editor-CustomEditors.html
⚫ Editor Windows Not Tied to a Custom Editor: docs.unity3d.com/Manual/editor-EditorWindows.html
⚫ AI Series Part 40 (Base for this video): youtu.be/dHLNqbKrJdg

📱 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: assetstore.unity.com/publishers/22409?_aid=1101l9QvC
Some links may be affiliate links, which at no additional cost to you, gives me a small portion of the purchase.

#unitytutorial #tutorialtuesday #gamedev #tutorial #unity #llamacademy #gamedevelopment

Music:
Soft Corporate: Soft Corporate by NewHOfTechnology | soundcloud.com/ewfechnolohy
Music promoted by free-stock-music.com
Creative Commons Attribution 3.0 Unported License
creativecommons.org/licenses/by/3.0/deed.en_US
Visualize Raycasts, Paths, and More in the Scene View with Editor Scripting | Unity Tutorial #shortsRuntime NavMesh Updates in Performance Critical Contexts | Unity TutorialScriptableObjects, Explained #ShortsPOV - Setting up Inverse Kinematics on a new model for the first time #gamedevWho, me? 2022 Compilation #shortsData Persistence - Save & load your game state while avoiding common mistakes | Unity TutorialReusable Components with UI Toolkit | Editor Scripting Unity TutorialTop 5 Optimization Tips from Building a Mobile Game #ShortsGhost Placement / Hologram Shader | Unity ShaderGraph TutorialWaves in ShaderGraph by Vertex Displacement | Unity TutorialStop Using Resources.Load()... Do THIS InsteadProcedural Recoil and Bullet Spread | Gun Series 2 | Unity Tutorial
LlamAcademy |

Visualize Raycasts, Paths, and More in the Scene View with Editor Scripting | Unity Tutorial #shorts

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER