Greetings Earthlings,
Today we decided to do something different so we put together a lovely tutorial for those of you who give a martian dung pile.
What's this thing all about (the TL;DR section)...
If you're using Unity to build your game or something less interesting, you may have a situation where an object (which is part of the scenery for instance) blocks the camera's view of its target.
Depending on your implementation details and / or limitations you may need to hide said object until the camera has moved past it.
There are various ways to solve this problem and here we will discuss one of those ways. The cool or not so cool thing about this approach is that it doesn't rely on the Layers system to determine if a particular object should be hidden from view.
The video...
So without further ado here is the video. Have a look and listen to my ramblings recorded over the period of three days. So, it may feel like three different people put this together.
Anyways.
If you spot mistakes, nonsensical statements and or other utter BS please let me know and I'll make the necessary corrections and or changes. Provided you are correct of course :)
If you are having trouble using this system in your game don't be shy, post your questions. Also, if there are features that you would like to see added to the system feel free to post them in the forum linked below as well.
Links, resources, code and so on...
You can find all of the code for the components mentioned in this video in this forum thread.
Additionally I wanted to mention the assets we used in the video, for those of you who are working on a similar game or perhaps a game that could use some of those assets.
So, here it goes:
- Minimap - KGFMapSystem
- UI Framework - NGUI
- Outlines - Highlighting System
- Tileset - Sci-Fi Level Construction Pack
- Audio System - SoundManager Pro 3
I hope that at least someone will find this useful :D
- Alex
Interesting tutorial :) thank you (tracking)!
It was an interesting experience :)
Never realised how hard it is to say something on video and not sound like a rambling idiot at the same time. I'm sure the second tutorial will be a lot better.
Thanks for watching.
- Alex