docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Encapsulator

    Encapsulates a string between 2 other strings. The default will add brackets around each input, to show where messages have been concatenated together and to indicate if text has been clipped in the UI. Concatenating text is a particular issue as some languages may need to reorder phrases or the translation may change depending on what is around it.

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

    Properties

    Name Description
    End

    String that will be added to the end of the input string.

    Start

    String that will be added to the start of the input string.

    Methods

    Name Description
    Transform(Message)

    Encapsulates the input between the Start and End strings.

    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)