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

    Properties

    End

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

    Declaration
    public string End { get; set; }
    Property Value
    Type Description
    String

    Start

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

    Declaration
    public string Start { get; set; }
    Property Value
    Type Description
    String

    Methods

    Transform(Message)

    Encapsulates the input between the Start and End strings.

    Declaration
    public void Transform(Message message)
    Parameters
    Type Name Description
    Message message
    Implements
    IPseudoLocalizationMethod.Transform(Message)

    Extension Methods

    TupleExtensions.IsValueTuple(Object)
    TupleExtensions.GetValueTupleItemObjects(Object)
    TupleExtensions.GetValueTupleItemObjectsFlattened(Object)
    In This Article
    • Properties
      • End
      • Start
    • Methods
      • Transform(Message)
    • Extension Methods
    Back to top
    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