Convai Environment
The Convai Environment class is used to define what actions are available for the character and what are the objects and other characters in the scene.
Convai Environment is used as input to the StartTalking()
or SendText()
functions in the Convai Player component, and it allows the character to generate actions.
A Convai Environment object must have a Main Character set to be considered valid.
Functions
Function | Returns | Description |
---|---|---|
| UConvaiEnvironment* | Creates a Convai Environment object. |
| void | Assigns the main character initiating the conversation, typically the player character, unless the dialogue involves non-player characters talking to each other. |
| void | Adds an action to the Environment object |
| void | Adds an array of actions to the Environment object |
| void | Remove an action from the environment object. |
| void | Removes an array of actions from the Environment object |
| void | Remove all actions from the Environment object. |
| void | Adds an object to the Environment object |
| void | Adds an array of objects to the Environment object |
| void | Remove an object from the environment object. |
| void | Removes an array of objects from the Environment object |
| void | Remove all objects from the Environment object. |
| void | Adds a character to the Environment object |
| void | Adds an array of characters to the Environment object |
| void | Remove a character from the environment object. |
| void | Removes an array of characters from the Environment object |
| void | Remove all characters from the Environment object. |
Last updated