docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum SubStringFormatter.SubStringOutOfRangeBehavior

    Specify behavior when start index and/or length is out of range

    Namespace: UnityEngine.Localization.SmartFormat.Extensions
    Assembly: Unity.Localization.dll
    Syntax
    [Obsolete("Use Unity.SmartStrings.Extensions.SubStringOutOfRangeBehavior from the SmartStrings module instead.")]
    public enum SubStringFormatter.SubStringOutOfRangeBehavior

    Fields

    Name Description
    ReturnEmptyString

    Returns string.Empty

    ReturnStartIndexToEndOfString

    Returns the remainder of the string, starting at StartIndex

    ThrowException

    Throws FormattingException

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