docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddExpansionRule

    AddExpansionRule(int, int, float)

    Adds an expansion rule to ExpansionRules

    Declaration
    public void AddExpansionRule(int minCharacters, int maxCharacters, float expansion)
    Parameters
    Type Name Description
    int minCharacters

    The minimum characters. The evaluated string length must be equal or greater than this value.

    int maxCharacters

    The maximum characters. The evaluated string length must be less than this value.

    float expansion

    The amount to increase the string length by as a ratio where 0 is no expansion and 1.0 is 100%(double length). It varies per language but 0.3 is a good value when using English.

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