docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PreserveTags

    Provides a pseudo-localization method to preserve certain parts of a string and prevent them from being modified, such as Rich Text tags. The method works by identifying text that is contained between an opening and closing tag and marking it as a ReadOnlyMessageFragment.

    Inheritance
    object
    PreserveTags
    Implements
    IPseudoLocalizationMethod
    Namespace: UnityEngine.Localization.Pseudo
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class PreserveTags : IPseudoLocalizationMethod

    Properties

    Name Description
    Closing

    The closing tag used to identify when to preserve text.

    Opening

    The opening tag used to identify when to preserve text.

    Methods

    Name Description
    Transform(Message)

    Apply a Pseudo-Localization transformation to the Message.

    In This Article
    Back to top
    Copyright © 2025 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)