Delegate PluralRules.PluralRuleDelegate
This delegate determines which singular or plural word should be chosen for the given quantity. This allows each language to define its own behavior for singular or plural words.
Namespace: UnityEngine.Localization.SmartFormat.Utilities
Syntax
public delegate int PluralRuleDelegate(decimal value, int pluralCount);
Parameters
| Type | Name | Description |
|---|---|---|
| Decimal | value | The value that is being referenced by the singular or plural words |
| Int32 | pluralCount |
Returns
| Type | Description |
|---|---|
| Int32 | Returns the index of the parameter to be used for pluralization. |