Intro to 3D Game Development

0 of 193 lessons complete (0%)

Scripting Part 3: Finishing the Game Loop

Give the DigSpot a Tag

You don’t have access to this lesson
Please register or sign in to access the course content.

An EntityRef is a great way to reference a specific entity in your game, but what do you do if you need to reference several entities as a category? For this, we use tags. We’ll give the Dig Spot a tag, so that later we can have as many of them as we want without having to keep track of how many there are, or which one is which. 

  1. Select the Dig Spot and open the Entity panel.
  2. In the Entity section, find the Tags field.
  3. Type ‘digSpot’ and press the Enter key.