We will start by creating a project that is set-up for DOTS.
- Create/Open a Unity project. Make sure it also uses either the URP or HDRP.
- Import the
com.unity.charactercontrollerpackage from the package manager. This will take care of importing thecom.unity.entitiesandcom.unity.physicspackages into your project, if not already present. - Import the
com.unity.entities.graphicspackage from the package manager. - (RECOMMENDED) Go to
Edit > Project Settings > Editor. EnableEnter Play Mode Options, and make sure theReload DomainandReload Sceneunderneath are both disabled. This will make entering play mode much faster
Note: For best performance in editor, pay attention to these settings:
Jobs > Burst > Enable Compilationshould be enabled in the top bar menuEdit > Preferences > Jobs > Enable Jobs Debuggershould be disabled