<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Debugging on GameSweetGame</title><link>https://gamesweetgame.com/en/tags/debugging/</link><description>Recent content in Debugging on GameSweetGame</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 13 Mar 2025 00:00:00 +0900</lastBuildDate><atom:link href="https://gamesweetgame.com/en/tags/debugging/index.xml" rel="self" type="application/rss+xml"/><item><title>Visualize Character Field of View with Unity Gizmos</title><link>https://gamesweetgame.com/en/p/visualize-character-field-of-view-with-unity-gizmos/</link><pubDate>Thu, 13 Mar 2025 00:00:00 +0900</pubDate><guid>https://gamesweetgame.com/en/p/visualize-character-field-of-view-with-unity-gizmos/</guid><description>&lt;p&gt;Unity has built-in Gizmo functions that get called automatically.&lt;/p&gt;
&lt;h3 id="ondrawgizmos"&gt;OnDrawGizmos()
&lt;/h3&gt;&lt;p&gt;Always visible in the Scene view.&lt;/p&gt;
&lt;h3 id="ondrawgizmosselected"&gt;OnDrawGizmosSelected()
&lt;/h3&gt;&lt;p&gt;Only visible when the object is &lt;strong&gt;selected&lt;/strong&gt; in the Scene view.&lt;/p&gt;
&lt;p&gt;Great for visualizing field of view, attack range, and other debug shapes.&lt;/p&gt;
&lt;p&gt;&lt;img alt="Blue lines drawn in scene" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px"&gt;&lt;/p&gt;</description></item></channel></rss>