Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

SubStringFormatter

class in Unity.SmartStrings.Extensions

/

Inherits from:Unity.SmartStrings.Core.Extensions.FormatterBase

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Outputs part of an input string.

Properties

Property Description
NullDisplayString The string to display for NULL values, defaults to (null). It will not be used, if a format option is provided to the formatter. In this case, the child formatter must handle the NULL result.
OutOfRangeBehavior The behavior when start index and/or length are too big, defaults to SubStringFormatter.SubStringOutOfRangeBehavior.ReturnEmptyString.
SplitChar The character used to split the option text literals. Valid characters are: | (pipe) , (comma) ~ (tilde)

Inherited Members

Properties

PropertyDescription
DefaultName Default name to use when FormatterBase.Name is null.