Deprecated: WP_Translation_Controller::load_file(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 101 Deprecated: WP_Translation_Controller::unload_file(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 156 Deprecated: WP_Translation_Controller::unload_textdomain(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 201 Deprecated: WP_Translation_Controller::is_textdomain_loaded(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 243 Deprecated: WP_Translation_Controller::translate(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 263 Deprecated: WP_Translation_Controller::translate_plural(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 297 Deprecated: WP_Translation_Controller::locate_translation(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 397 Deprecated: WP_Translation_Controller::get_files(): Implicitly marking parameter $locale as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-controller.php on line 430 Deprecated: WP_Translation_File::create(): Implicitly marking parameter $filetype as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/l10n/class-wp-translation-file.php on line 84 Deprecated: wp_getimagesize(): Implicitly marking parameter $image_info as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/media.php on line 5502 Deprecated: Assert\that(): Implicitly marking parameter $defaultPropertyPath as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-content/plugins/onecom-spam-protection/inc/lib/vendor/beberlei/assert/lib/Assert/functions.php on line 37 Deprecated: Assert\thatAll(): Implicitly marking parameter $defaultPropertyPath as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-content/plugins/onecom-spam-protection/inc/lib/vendor/beberlei/assert/lib/Assert/functions.php on line 51 Deprecated: Assert\thatNullOr(): Implicitly marking parameter $defaultPropertyPath as nullable is deprecated, the explicit nullable type must be used instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-content/plugins/onecom-spam-protection/inc/lib/vendor/beberlei/assert/lib/Assert/functions.php on line 67 Warning: Cannot modify header information - headers already sent by (output started at /customers/f/5/6/spelkraft.com/httpd.www/wp-settings.php:118) in /customers/f/5/6/spelkraft.com/httpd.www/wp-content/plugins/onecom-vcache/vcaching.php on line 595 Warning: Cannot modify header information - headers already sent by (output started at /customers/f/5/6/spelkraft.com/httpd.www/wp-settings.php:118) in /customers/f/5/6/spelkraft.com/httpd.www/wp-content/plugins/onecom-vcache/vcaching.php on line 603 Unity gizmos can be pretty useful Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-theme-json.php on line 2532 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-theme-json.php on line 2532 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-theme-json.php on line 2532 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-theme-json.php on line 2532

Unity gizmos can be pretty useful

Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block.php on line 246 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168 Deprecated: Using null as an array offset is deprecated, use an empty string instead in /customers/f/5/6/spelkraft.com/httpd.www/wp-includes/class-wp-block-type-registry.php on line 168

ThePowerOfGizmos1

I usually use Unitys gizmos to help debug features I am working on. It’s a great feature. It really helps to visualise what your code is doing. But I usually remove the gizmos once I have sorted stuff out and know that the code is doing what it’s supposed to.
Today when working on the project I got the feeling that it started to get a bit messy. There are a lot of small systems that speaks to each other but nothing is visible in the editor except from the inspector.
I thought that I could use gizmos to help clear things up.
I found the Gizmos.DrawIcon function to be very helpful. It enables you to draw custom gizmo icons in the editor with the same functionality as the built-in ones.
It’s great to be able to visualise your own scripted object and its connected objects and functionalities.
In the picture you can see an example of the way I use gizmos for a cinematic camera system.
I’m considering adding gizmo icons to all the major systems I use in the game.
For my game it could really help the development with a system for displaying which objects are interactive and which are not.
Just wanted to share this new way (for me) of using gizmos.
Hope this tip can be of use for anyone.