docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SubStringFormatter

    Formatter to access part of a string.

    Inheritance
    object
    FormatterBase
    SubStringFormatter
    Implements
    IFormatter
    ISerializationCallbackReceiver
    Inherited Members
    FormatterBase.Names
    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public class SubStringFormatter : FormatterBase, IFormatter, ISerializationCallbackReceiver

    Constructors

    Name Description
    SubStringFormatter()

    Creates a new instance of the formatter.

    Properties

    Name Description
    DefaultNames

    Default names to use when Names is null.

    NullDisplayString

    Get or set the string to display for NULL values, defaults to "(null)".

    OutOfRangeBehavior

    Get or set the behavior for when start index and/or length is too great, defaults to ReturnEmptyString.

    ParameterDelimiter

    The delimiter to separate parameters, defaults to comma.

    Methods

    Name Description
    TryEvaluateFormat(IFormattingInfo)

    Tries to process the given IFormattingInfo.

    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)