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.
- Add an
AgentControllercomponent to the GameObject you wish to connect. - In the UID field, type the UID for the existing or new agent
- Specify the Agent Schema for this agent. You can skip this step if you know that the agent already exists within TDRS.
- Configure initial stats and traits (if new agent). Existing agent values will not be overwritten.
- 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 theSocialEngineControllerinstance.
Sample Agent
