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. |