1 min
The second CGD blog post about Don’t Walk By
For the first week I added the touch manager script I used in a previous game jam.
The touch manager script is a wrapper around Unity’s touch api with functions which users can call to determine if a gameobject is being touched or not. It also spoofs the mouse as a touch so anything a user develops using the mouse will work for a touch screen. There were some adjustments need to be made to the script however. The game jam game the script was used in had no UI elements to the touch manager needed to be able to detect both non-ui and ui gameobjects. The script works by firing a raycast from the touch postion downwards an detecting the first gameobject it hits. So for UI I implemented the same method but using the Unity Event System raycast that only picks up on UI and doesn’t require a colliders on the UI gameobjects to do so.
Subscribe to this blog via RSS.
C++ 30
Directx12 11
Mario kart 11
Commercial games development 15
Unity 15
Low-level programming (19) C++ (30) Text based adventure (5) Ex-machina (9) Game engine programming (11) Directx12 (11) Mario kart (11) Land of gold (5) Audio visual production (1) Commercial games development (15) Unity (15) Don't walk by (15)