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.
- Get Rival from the asset store, and import the
Rivalpackage from the "My Assets" section of the package manager. This will take care of importing thecom.unity.entities,com.unity.physics, andcom.unity.entities.graphicspackages into your project, if not already present. - (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