Unity: Callbacks and Multi-Threading

Even if you’re not explicitly working with multi-threading, Unity’s internal processes might be, and it’s crucial to be able to recognise a threading problem when you encounter it. Unity can execute your code on other threads and this might cause multi-threading-related issues in your code.   Unity employs multi-threading in the serialization, build process and … Read more

Unity: Scroll Rect Controller Input

Have you ever wondered why controller input isn’t supported by the scroll rect? This is a question that crosses my mind every time I work on UI with controller support. Most of the UI components don’t support controller input apart from navigation. While Unity offers a lot of default functionality, there are instances where the … Read more

Mixed Reality meets Green Screen

During a demo project at the MD.I Hub for an automotive client, I combined the Oculus Rift (VR headset) with the ZED Mini (stereo camera) to craft an immersive mixed-reality experience.   The green screen serves a crucial role in outlining the physical space where the virtual reality unfolds. This setup allows the VR user … Read more

Unity: Load Assets in Editor

Sometimes you need to load assets in the editor without the comfort of a direct reference. Assets are loaded using the AssetDatabase and it can be done by Instance ID The instance ID is visible at the top of the inspector when the inspector debug mode is active.   Beware, the instance ID  survives enter/exit … Read more

Unity: Don’t Cache in OnTrigger

In a nutshell: steer clear of OnTrigger callbacks when it comes to managing caches.   By caches, I’m referring to any collection that monitors the objects within the collider. These callbacks prove unreliable, and Unity currently has no plans to address this behaviour in the immediate future.   There’s no assurance that you’ll consistently receive … Read more

EXIT 2 – The Trial of the Griffin

A collaboration with publisher United Soft Media. Puzzle adventure for iOS, Android, and Steam, based on the award-winning EXIT – The Game® board game series.     Genre: Puzzle Platform: Android/iOS and Steam Artstil: 2D with 3D items Engine: Unity 3D Year: 2022-2023   The second digital adaptation of the series invites players to the … Read more

Unity: Better Inspector

Improving the inspector in Unity can have significant benefits for game development efficiency and workflow.   An organized and easy-to-read inspector layout can provide quick access to game objects, components, and properties, making it simpler to identify and modify different elements of the game without having to navigate a cluttered and confusing interface.   In … Read more

Medical VR – Search Training

Search Training is a medical VR application that trains hemianopsia patients to compensate for their vision loss with eye movement and collects training data.   Genre: Medical App Platform: Google Daydream Artstil: 2D Engine: Unity 3D Year: 2018   Configurable stimuli pairs are displayed on a sphere surrounding the user. Head movement can’t be used … Read more

Unity: Animator State Lost?

Sometimes there is an animated gameObject which mustn’t stop animating or its state breaks. If it should continue off-screen you can set the Culling Mode of the animator to Always Animate.   But sometimes that’s not enough. When you disable an animator in the mid of an animation, it’s most likely stuck the next time … Read more

Unity: Events vs Interfaces

“Events are evil!” is a common opinion among Unity developers. What are the reasons behind this statement and are interfaces an alternative to events? Example implementation at the bottom.     Problems A common source for event bugs are timing issues. For an event to work correctly you have to subscribe before it’s triggered and … Read more