PixelCrushers.DialogueSystem.UseAnimatedPortraits Class Reference

Add this to the Dialogue Manager to support animated portraits in Unity UI Dialogue UIs. More...

Inheritance diagram for PixelCrushers.DialogueSystem.UseAnimatedPortraits:
Collaboration diagram for PixelCrushers.DialogueSystem.UseAnimatedPortraits:

Public Member Functions

void OnConversationLine (Subtitle subtitle)
 When speaking a line, update the appropriate portrait image with the speaker's animated portrait animator controller. More...
 
void OnConversationResponseMenu (Response[] responses)
 When showing the response menu, update the subtitle reminder image with the last speaker's animated portrait animator controller. More...
 
void OnConversationEnd (Transform actor)
 When ending the conversation, clear the cache of animated portraits. More...
 

Detailed Description

Add this to the Dialogue Manager to support animated portraits in Unity UI Dialogue UIs.

Participants' GameObjects must have AnimatedPortrait components.

Member Function Documentation

◆ OnConversationEnd()

void PixelCrushers.DialogueSystem.UseAnimatedPortraits.OnConversationEnd ( Transform  actor)

When ending the conversation, clear the cache of animated portraits.

Parameters
actorActor.

◆ OnConversationLine()

void PixelCrushers.DialogueSystem.UseAnimatedPortraits.OnConversationLine ( Subtitle  subtitle)

When speaking a line, update the appropriate portrait image with the speaker's animated portrait animator controller.

Parameters
subtitleSubtitle.

◆ OnConversationResponseMenu()

void PixelCrushers.DialogueSystem.UseAnimatedPortraits.OnConversationResponseMenu ( Response[]  responses)

When showing the response menu, update the subtitle reminder image with the last speaker's animated portrait animator controller.

Parameters
responsesResponses.

The documentation for this class was generated from the following file: