Sponsored By

Outline Objects in Unity Engine: Deterrence - Video Devlog 14

The fourteenth weekly devlog of Deterrence. This week I give obscured units outlines, add an end game menu, and give command menu buttons info boxes when hovered by the cursor.

Matthew Gianfrancesco, Blogger

June 20, 2022

2 Min Read

Title_(11).png

A tower defense mixed with real-time strategy where you repel attacking sentient AI robots until they give up.




Outline Objects in Unity Engine

I found a really simple tutorial that outlines game objects on specific layers by Will Weissman that can be found here. But I didn't use this method to outline my RTS units because it very basic and there is no way of knowing if an object is obscured. Will Weissman's method would be for simple point and click or FPS game objects.

I needed an outline method that would only show outlines when the unit is obscured by other objects. I managed to find a free package in the Unity Asset store. Quick Outline has 5 different outline modes and one of them was exactly what I needed. You can find the Quick Outline asset here.

Game End

I tried to make something like Starcraft 2 end prompt. For now, the menu will have three options: main menu, retry, and quit; regardless of the game end condition. For a defeat, the camera will focus on the primary building to defend so the player can watch it collapse as the end game prompt transitions into view.

Command Menu Info Boxes

When the players cursor hovers over a command menu button, an info box for that button will show. The info boxes will show the command name, command type, cost, etc. The info boxes will be using a color code and have a standard order to make them legible at a glance. Later I will have info boxes change color and info dynamically to show unmet requirements for a command such as insufficient supplies.

Read more about:

Blogs
Daily news, dev blogs, and stories from Game Developer straight to your inbox

You May Also Like