docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CharacterSubstitutor

    Replaces characters in the input string.

    Inheritance
    object
    CharacterSubstitutor
    Accenter
    Implements
    IPseudoLocalizationMethod
    ISerializationCallbackReceiver
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)