Class DefaultSource
Provides the ability to reference an argument by its index, the same as String.Format.
Namespace: UnityEngine.Localization.SmartFormat.Extensions
Syntax
[Serializable]
public class DefaultSource : ISource
Constructors
DefaultSource(SmartFormatter)
Creates a new instance of the formatter.
Declaration
public DefaultSource(SmartFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
SmartFormatter | formatter | The formatter that the source is added to. |
Methods
TryEvaluateSelector(ISelectorInfo)
Performs the default index-based selector, same as String.Format.
Declaration
public bool TryEvaluateSelector(ISelectorInfo selectorInfo)
Parameters
Type | Name | Description |
---|---|---|
ISelectorInfo | selectorInfo |
Returns
Type | Description |
---|---|
Boolean |