An actor asset in a DialogueDatabase.
More...
|
bool | IsPlayer [get, set] |
| Gets or sets a value indicating whether this actor is a player character or an NPC. More...
|
|
string | textureName [get, set] |
| Gets or sets the texture name to use as the actor's portrait. More...
|
|
string | Name [get, set] |
| Gets or sets the Name field. More...
|
|
string | localizedName [get] |
| Gets the localized Name field. More...
|
|
string | Description [get, set] |
| Gets or sets the Description field, which is optional and may not exist. More...
|
|
An actor asset in a DialogueDatabase.
An actor is a participant in a conversation.
◆ Actor() [1/3]
PixelCrushers.DialogueSystem.Actor.Actor |
( |
| ) |
|
|
inline |
◆ Actor() [2/3]
PixelCrushers.DialogueSystem.Actor.Actor |
( |
Actor |
sourceActor | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ Actor() [3/3]
Initializes a new Actor copied from a Chat Mapper actor.
- Parameters
-
chatMapperActor | The Chat Mapper actor. |
◆ Assign()
void PixelCrushers.DialogueSystem.Actor.Assign |
( |
ChatMapper.Actor |
chatMapperActor | ) |
|
|
inline |
Copies a Chat Mapper actor.
- Parameters
-
chatMapperActor | The Chat Mapper actor. |
◆ GetPortraitTexture()
Texture2D PixelCrushers.DialogueSystem.Actor.GetPortraitTexture |
( |
int |
i | ) |
|
|
inline |
Gets the portrait texture at a specific index, where 1
is the default portrait and 2
+ are the alternate portraits.
- Returns
- The portrait texture.
- Parameters
-
i | The index number of the portrait texture. |
◆ alternatePortraits
List<Texture2D> PixelCrushers.DialogueSystem.Actor.alternatePortraits = new List<Texture2D>() |
The alternate portrait images.
Corresponds to [pic=2]+
tags.
◆ portrait
Texture2D PixelCrushers.DialogueSystem.Actor.portrait = null |
The actor's (optional) portrait image.
Corresponds to [pic=1]
tag.
◆ IsPlayer
bool PixelCrushers.DialogueSystem.Actor.IsPlayer |
|
getset |
Gets or sets a value indicating whether this actor is a player character or an NPC.
true
if this actor is a player character; otherwise, false
.
◆ textureName
string PixelCrushers.DialogueSystem.Actor.textureName |
|
getset |
Gets or sets the texture name to use as the actor's portrait.
The texture name, which is the first item in the Pictures or Texture Files fields.
The documentation for this class was generated from the following file:
- D:/Documents/Unity Projects/LoveHate/Dev/Source/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Model-View-Controller/Model/Data/Actor.cs