Tutorial
Check for TPC package dependencies
- Input System (com.unity.inputsystem)
- Entities (com.unity.entities)
- Unity.Physics (com.unity.physics)
Check for Demo scene package dependencies
- URP (com.unity.render-pipelines.universal)
- Unity Character Controller (com.unity.charactercontroller - still experimental at this date)
Unity Character Controller (formerly Rival) is not a direct requirement for TPC but the fastest and recommended way to get your character moving around the DOTS world
- Entities.Graphics (com.unity.entities.graphics)
Import the DOTS_TPC package and untick "Demos" in case you just want the base package
Create new Scene
This should contain a Main Camera and the Directional Light
- Create a subscene
The subscene will be empty at first but later contains GameObjects that will be converted to entities. These include the level geometry and TPC settings
- Setup some basic 3D GameObjects that represent your game world. A ground plane to start with. Then some cylinders or ramps.
Note: The next section is Character Controller/CC specific. If you don't use CC or have it already setup, skip this part.
import the CC package with the Package Manager. Click the + icon, "Add package by name" and enter: "com.unity.charactercontroller"
the CC package serves as the base and an implementation is required for first/third person movement. TPC comes with such an implementation in the Demos folder (DOTS-TPC/Demos/Character Controller)
Navigate to the "StandardCharacters\ThirdPerson\Prefabs" folder
Drag & Drop the following prefabs:
- ThirdPersonPlayer
- ThirdPersonCharacter
Click on ThirdPersonPlayer and reference ThirdPersonCharacter in the field Controlled Character
The Character Controller setup is done!
TPC Setup
- Drag & Drop TPC_Camera prefab from the prefab folder "DOTS-TPC\Runtime\Prefabs" into the subscene or
- Create a new GameObject in the subscene and add the component TPC_MainCamera_Authoring
- The TPC setup is done!
Note: A final step for Character Controller is needed!
Click on ThirdPersonPlayer once again and reference TPC_Camera in Controlled Camera
Hit play!