Unity: Comment Component

Problem Do you ever think “The GameObject setup is so weird, it should be documented” but then don’t do it? Or are you forced to insert components in strange places because Unity just can’t do it any other way? Keyword: Unity’s UI rendering order is influenced by the hierarchy.   Most of the time it … Read more

Unity: Screen Space Gizmos

Unity’s default gizmos are essential for visual debugging but can only be drawn in world space. This restriction can be rather annoying if you try to debug custom UI or viewport-based camera movement. A simple line at a specific pixel coordinate would solve the problem most of the time. There are two solutions to this … Read more

Unity: Google Drive + Asset Bundles for D&D

One evening when I was engaged in playing D&D with my friends I realized that we had a hard time remembering the names of the characters and cities we encountered. And it would enhance our experience if we knew them and not fall back to asking our game master all the time.   The idea … Read more

Unity: Why Random.Range is Dangerous

Unity’s random seems like a straightforward to use and easily accessible function. It is helpful when dealing with procedural generation and AI behavior because the seed can be fixed to repeat the behavior. So it seems. But this is not always the case. UnityEngine.Random can case intricate timing bugs. These bugs are hard to track … Read more

Unity: UI Workflow Improvement

¬† If you build a game in Unity you will need a few UI screens to guide your player. The number of canvases will increase with the complexity and size of your project. ¬† The canvases and the UI graphics will start to clutter your scene view because canvases are not moveable. This leads to … Read more

Unity: Custom Editor Examples

 I will show two examples of custom editors I implemented in production to enhance our workflow with generated data.  The examples are from the game ‘Space Shop VR‘. It is about a shop in space that sells different items to aliens. The clue is that all aliens speak different languages and the VR player must … Read more

Unity: UI Space Conversion

Converting between the different coordinate systems of the Unity UI can be the key to a lot of cool custom UI and input features. You can basically convert every point in all coordinate spaces available with a few simple math functions. There are three different spaces:   Screen Space This is the space in which … Read more

Unity: Saving to SD Card

Today I want to show you, how you can save reliably on the sd card/external storage. This will only work for devices with android Lollipop (API level 21) or greater. Also hostet at my GitHub: https://github.com/AuriMoogle/Unity-SaveToSDCard   No java code necessary, only Unity!     If you must save on the sd card and the … Read more