[HOWTO] How To: Configure Starter Assets First/Third Person Controller

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

[HOWTO] How To: Configure Starter Assets First/Third Person Controller

Post by Tony Li »

Here are the steps to configure the Starter/Standard Assets FirstPersonController or ThirdPersonController with the Dialogue System:

1. If you're using newer versions of the Starter Assets that use the Input System package, tick the Dialogue System Welcome Window's USE_NEW_INPUT checkbox.

2. Add a Dialogue Actor component, and set the Actor to Player.

3. Optionally add a Selector or Proximity Selector if that's how you want to interact in your game.

4. Add a Dialogue System Events component.
  • In the OnConversationStart() event, disable 3 components:
    • Player's FirstPersonController/RigidbodyFirstPersonController -- or configure the event to call PlayerInput.DeactivateInput if present.
    • Player's Selector/ProximitySelector
    • (For RigidbodyFirstPersonController only:) Main Camera's HeadBob
  • In the OnConversationEnd() event, re-enable the 3 components. (Or call PlayerInput.ActivateInput if you used DeactivateInput.)
5. Add Usable and Dialogue System Trigger components to an NPC. To show the cursor during conversations, tick the Start Conversation action's Show Cursor During Conversation checkbox.

6. Optional: Add a Position Saver to save the player's position in saved games.

7. Optional: You may want to tag your player GameObject as Player if it isn't already, and add a Dialogue Actor component set to Player.

Example scenes:

DS_FirstPersonController_Example_2023-02-27.unitypackage

DS_ThirdPersonController_Example_2022-06-02.unitypackage
Post Reply