Create New Agent GameObjects - ShiJbey/TDRS GitHub Wiki

How to create new agent GameObjects

This guide explains connecting Agent instances within TDRS to GameObjects within your Unity scene. If an agent already exists within TDRS, the GameObject will display that agent's stats. If not, TDRS will create a new agent for the controller to display.

  1. Add an AgentController component to the GameObject you wish to connect.
  2. In the UID field, type the UID for the existing or new agent
  3. Specify the Agent Schema for this agent. You can skip this step if you know that the agent already exists within TDRS.
  4. Configure initial stats and traits (if new agent). Existing agent values will not be overwritten.
  5. TDRS will automatically discover the AgentController at the beginning of the game. If this character is created mid-game, please call the RegisterAgent() method on the SocialEngineController instance.

Sample Agent

agent controller screenshot