docs.unity3d.com
    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
    Namespace: UnityEngine.Localization.Pseudo
    Syntax
    public class PreserveTags : object, IPseudoLocalizationMethod

    Properties

    Closing

    The closing tag used to identify when to preserve text.

    Declaration
    public char Closing { get; set; }
    Property Value
    Type Description
    Char

    Opening

    The opening tag used to identify when to preserve text.

    Declaration
    public char Opening { get; set; }
    Property Value
    Type Description
    Char

    Methods

    Transform(Message)

    Apply a Pseudo-Localization transformation to the Message.

    Declaration
    public void Transform(Message message)
    Parameters
    Type Name Description
    Message message
    Implements
    IPseudoLocalizationMethod.Transform(Message)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023