docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Extension Methods

    TupleExtensions.IsValueTuple(Object)
    TupleExtensions.GetValueTupleItemObjects(Object)
    TupleExtensions.GetValueTupleItemObjectsFlattened(Object)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023