-
Notifications
You must be signed in to change notification settings - Fork 0
Create New Relationship GameObjects
Shi Johnson-Bey edited this page Feb 21, 2024
·
2 revisions
This guide explains connecting Relationship instances within TDRS to GameObjects within your Unity scene. If a relationship already exists within TDRS, the GameObject will display that relationships's stats. If not, TDRS will create a new relationship for the controller to display.
- Add a
RelationshipController
component to the GameObject you wish to connect. - Drag one of your agent GameObjects to the
Owner
field. - Drag another agent to the
Target
Field. - Make sure you have a proper the Relationship Schema that handles relationship instances from the owner't agent type to the target's agent type.
- Configure initial stats and traits (if new relationship). Existing relationship values will not be overwritten.
- TDRS will automatically discover the RelationshipController at the beginning of the game. If this character is created mid-game, please call the
RegisterRelationship()
method on theSocialEngineController
instance.- Registering a relationship will fail if the owner and target agents do not already exist within TDRS.