The DOTS package
- Game Development course
- Expert
- Lesson 20/47
- 4 min
Learn to add the DOTS package to the project.
What Is DOTS?
DOTS refers to Unity's high-performance game development approach. It is known as Data-Oriented Technology Stack and uses technologies such as ECS, Burst Compiler, and Job System. These technologies aim to improve performance, especially in games containing many objects.
DOTS
ECS
Burst
Job SystemYou need to add the relevant Unity packages to your project to use DOTS technologies.
Adding DOTS Packages to a Project
To start using DOTS in Unity, you can install the required packages through Package Manager. Search for the Entities package in the Unity Registry section and add it to your project. You can also install related packages such as Burst depending on the DOTS features you intend to use.
Package Manager
Unity Registry
Entities
BurstAfter installation, Unity adds the required files to the project.
Practice Identify DOTS Packages
Create a MonoBehaviour class named DotsPackageInfo. In the Start method, print the names of the Entities and Burst packages used in DOTS development separately to the console.
Starter code
using UnityEngine;
public class DotsPackageInfo : MonoBehaviour
{
void Start()
{
// İki paket adını yazdır
}
}Sample solution
using UnityEngine;
public class DotsPackageInfo : MonoBehaviour
{
void Start()
{
Debug.Log("Entities");
Debug.Log("Burst");
}
}Expected output
Entities Burst
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 What does the DOTS abbreviation stand for?
- Data-Oriented Technology Stack Correct answer
- Direct Online Tool System
- Distributed Object Type Structure
- Dynamic Object Transfer System
Explanation: DOTS stands for Data-Oriented Technology Stack. It includes Unity technologies focused on data-oriented design and performance.
2 Identify the Entities Package
Package Manager > Unity Registry > ____
Package Manager > Unity Registry > Entities
Explanation: The Entities package is one of the core DOTS packages used for ECS-based development in Unity.
3 DOTS Package Components
| Term | Meaning |
|---|---|
Entities |
Provides ECS development tools |
Burst |
Improves code performance |
Package Manager |
Installs and manages packages |
Unity Registry |
Provides Unity packages |