This component allows you to override the actor name used in conversations, which is normally set to the name of the GameObject. More...
Public Member Functions | |
void | OnEnable () |
void | OnDisable () |
string | GetName () |
Gets the name, which is possibly the override name or its localized version. More... | |
string | GetOverrideName () |
Gets the name of the override, including parsing if it contains a [lua] or [var] tag. More... | |
string | GetInternalName () |
Static Public Member Functions | |
static OverrideActorName | GetOverrideActorName (Transform t) |
Searches a GameObject or its parent for an OverrideActorName component. More... | |
static string | GetActorName (Transform t) |
Gets the name of the actor, either from the GameObject or its OverrideActorComponent if present. More... | |
static string | GetInternalName (Transform t) |
Gets the internal database name of the actor, from the OverrideActorComponent's internalName if set, otherwise the overrideName, or the GameObject name if the GameObject doesn't have an OverrideActorName component. More... | |
Public Attributes | |
string | overrideName |
Overrides the actor name used in conversations. More... | |
string | internalName |
The internal name to use in the dialogue database when saving persistent data. More... | |
bool | useLocalizedNameInDatabase = false |
If true, look up the localized field associated with the actor's name. More... | |
This component allows you to override the actor name used in conversations, which is normally set to the name of the GameObject.
If the override name contains a [lua] or [var] tag, it parses the value.
|
static |
Gets the name of the actor, either from the GameObject or its OverrideActorComponent if present.
t | The actor's transform. |
string PixelCrushers.DialogueSystem.OverrideActorName.GetInternalName | ( | ) |
|
static |
Gets the internal database name of the actor, from the OverrideActorComponent's internalName if set, otherwise the overrideName, or the GameObject name if the GameObject doesn't have an OverrideActorName component.
t |
string PixelCrushers.DialogueSystem.OverrideActorName.GetName | ( | ) |
Gets the name, which is possibly the override name or its localized version.
|
static |
Searches a GameObject or its parent for an OverrideActorName component.
t | The GameObject to search. |
string PixelCrushers.DialogueSystem.OverrideActorName.GetOverrideName | ( | ) |
Gets the name of the override, including parsing if it contains a [lua] or [var] tag.
null
if not set.void PixelCrushers.DialogueSystem.OverrideActorName.OnDisable | ( | ) |
void PixelCrushers.DialogueSystem.OverrideActorName.OnEnable | ( | ) |
string PixelCrushers.DialogueSystem.OverrideActorName.internalName |
The internal name to use in the dialogue database when saving persistent data.
If blank, uses the override name.
string PixelCrushers.DialogueSystem.OverrideActorName.overrideName |
Overrides the actor name used in conversations.
bool PixelCrushers.DialogueSystem.OverrideActorName.useLocalizedNameInDatabase = false |
If true, look up the localized field associated with the actor's name.