docs.unity3d.com

Localization 1.5.1

Search Results for

    Show / Hide Table of Contents

    Struct Expander.ExpansionRule

    A rule used to determine how much the string length should be increased by.

    Namespace: UnityEngine.Localization.Pseudo
    Assembly: Unity.Localization.dll
    Syntax
    [Serializable]
    public struct Expander.ExpansionRule

    Constructors

    Name Description
    ExpansionRule(int, int, float)

    Create a new Expansion Rule instance.

    Properties

    Name Description
    ExpansionAmount

    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 as the source language.

    MaxCharacters

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

    MinCharacters

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

    Methods

    Name Description
    CompareTo(ExpansionRule)

    Used for sorting the expansion rules. Rules are sorted by the MinCharacters value.

    In This Article
    • Constructors
    • Properties
    • Methods
    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)