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.charactercontroller
package from the package manager. This will take care of importing thecom.unity.entities
andcom.unity.physics
packages into your project, if not already present. - Import the
com.unity.entities.graphics
package from the package manager. - (RECOMMENDED) Go to
Edit > Project Settings > Editor
. EnableEnter Play Mode Options
, and make sure theReload Domain
andReload Scene
underneath 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 Compilation
should be enabled in the top bar menuEdit > Preferences > Jobs > Enable Jobs Debugger
should be disabled