Class CharacterSubstitutor
Replaces characters in the input string.
Namespace: UnityEngine.Localization.Pseudo
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class CharacterSubstitutor : IPseudoLocalizationMethod, ISerializationCallbackReceiver
Properties
Name | Description |
---|---|
ListMode | The method to use when selecting a character from ReplacementList. |
Method | The substitution method to use. |
ReplacementList | The characters to use when using List mode. |
ReplacementMap | Dictionary of characters that will be replaced when using Map. Any value that is not present will be preserved. |
Methods
Name | Description |
---|---|
Transform(Message) | Replaces each character in the input with a replacement character if one can be found. If a replacement character can not be found then the original is kept. |