Join Dan Violet Sagmiller for an in-depth discussion in this video Select, part of Build a Real-Time Strategy Game with Unity 5.
- [Voiceover] Now we'll show how the framework…can highlight when selected…by creating interaction for it…and setting up the drone to use it.…To start this, I'm going into the Scripts folder…and into the Interactions folder underneath that.…I'm gonna create a c sharp subscript called Highlight.…Now I'll edit the code for it.…Now, the first thing we need to do with highlight…is set it up to be an interaction,…not just a monobehaviour.…So, interactions inherit from monobehaviour,…which means that we can still use…the start and update functions.…
The first field that I like to have is the gameobject…that we're going to enable or disable…based on whether or not this is selected.…So, public, GameObject, DisplayItem.…Next, I need to override the methods and interaction…for select and deselect.…So, public override…and then you can see that we have the options…for Deselect here.…We'll press Enter, and then I'm going to replace…the exception it put in here…with DisplayItem.SetActive…false.…
And then I also need to override the select,…
AuthorDan Violet Sagmiller
- Adding player positions and start info
- Loading prebuilt levels
- Adding camera moves
- Adding a unit
- Supporting navigation
- Adding unit owners and player objects
- Importing and setting up a HUD map
- Adding unit info and credits
- Creating HUD actions
- Building a command base
- Adding artificial intelligence
- Adding battle actions
Skill Level Intermediate
1. Initial Setup
2. Adding a Unit
3. Navigation Mesh
4. Unit Owner
5. HUD Map
6. Unit Info & Credits
7. HUD Actions
8. Command Base
9. Base AI
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.