Skip to content

Speaker

namespace Griff.Scenes;
public sealed class Speaker : Component

Someone who talks in dialogue: the name shown over what they say and their portrait, in a DialogueBox. A Dialogue on the same entity is said by them, and so is a line anywhere that starts with their name (“Guide: Over here!”), so the player can answer back. Put one on an empty entity for someone who isn’t in the level (a narrator, a voice on the radio).

This is a component: its saved properties are on its component page.

public string? Name { get; set; }

The name shown over what they say, and that lines start with to be said by them. Empty uses the entity’s name.

public string? PortraitImage { get; set; }

Their picture, shown in the box’s portrait while they talk. Empty shows no portrait.

public string ShownName { get; }

The name shown: Name, or the entity’s when that’s empty.