Skip to content

Commit

Permalink
Tidy up UnityLocalisedLineProvider messages
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Oct 31, 2022
1 parent 00e89b7 commit fe4399f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/LineProviders/UnityLocalisedLineProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ private void OnStringTableChanged(StringTable newTable)
#else
public override void Start()
{
Debug.LogError("Unable to use the localised line provider without also including the Unity Localization package.");
Debug.LogError($"{nameof(UnityLocalisedLineProvider)} requires that the Unity Localization package is installed in the project. To fix this, install Unity Localization.");
}
public override LocalizedLine GetLocalizedLine(Yarn.Line line)
{
Debug.LogError("Unable to create a localised line, this class does not work without also uncluding the Unity Localization package");
Debug.LogError($"{nameof(UnityLocalisedLineProvider)}: Can't create a localised line for ID {line.ID} because the Unity Localization package is not installed in this project. To fix this, install Unity Localization.");

return new LocalizedLine()
{
TextID = line.ID,
RawText = $"{line.ID}: Unable to create a localised line, this line provider does not work without also uncluding the Unity Localization package",
RawText = $"{line.ID}: Unable to create a localised line, because the Unity Localization package is not installed in this project.",
Substitutions = line.Substitutions,
};
}
Expand Down

0 comments on commit fe4399f

Please sign in to comment.