InworldInteraction
Module: Inworld.AI. Namespace: Inworld.Interactions. Inherited from MonoBehavior
This class is the general interaction component of Inworld character. In Inworld, InworldInteraction is used to render the conversation received from the Inworld server.
Variables
Variables | Description |
---|---|
ContinueKey | The KeyCode for manually playing the next utterance. |
SkipKey | The KeyCode for skip the current utterance. |
ContinueButton | The UI Button displaying indicate to continue. |
Interruptable | Determines whether this character's speaking is interruptable. |
AutoProceed | Determines whether player needs to manually press the ContinueKey to play the next utterance. |
MaxItemCount | The maximum items (chat bubbles) supported storing in the interaction. |
TextSpeedMultiplier | The speed of rendering chat bubbles. |
Properties
Properties | Description |
---|---|
AnimFactor | Gets the factor for selecting animation clips. If without Audio, it's a random value between 0 and 1. |
Functions
Functions | Description | Parameters |
---|---|---|
IsRelated | If the target packet is sent or received by this character. | packet: the target InworldPacket. |
CancelResponse | Interrupt this character by cancelling its incoming sentences. Hard cancelling means even cancel and interrupt the current interaction. Soft cancelling will only cancel the stored interactions. | isHardCancelling: If it's hard cancelling. By default it's true. |