CharacterEvents
Module: Inworld.AI Namespace: Inworld.Entities
This file defines the data structures for hosting all the UnityEvents of the InworldCharacter. The first parameter is the character's brain name.
Variables
Variable | Description |
---|---|
onCharacterSelected | Triggers when the InworldCharacter is selected as the CurrentCharacter. |
onCharacterDeselected | Triggers when the InworldCharacter is deselected as the CurrentCharacter. |
onCharacterDestroyed | Triggers when the InworldCharacter is destroyed. |
onBeginSpeaking | Triggers when the InworldCharacter begins speaking. |
onEndSpeaking | Triggers when the InworldCharacter ends speaking. |
onInteractionEnd | Triggers when the ControlPacket of INTERACTION_END is received by the character. |
onPacketReceived | Triggers when the InworldCharacter receives any InworldPackets. |
onCharacterSpeaks | Triggers whenever the InworldCharacter speaks a sentence. The other parameter is the text of the sentence. |
onEmotionChanged | Triggers when the Emotion of the InworldCharacter has changed. The other parameter is the string of the incoming emotion. |
onGoalCompleted | Triggers when any Goal is received and completed. The other parameter is the name of the goal you defined in the studio. |
onRelationUpdated | Triggers when any RelationEvent is received and updated. |
API
Function | Description | Parameters |
---|---|---|
RemoveAllEvents | Removes all the listerners of all the character events of the InworldCharacter. |