文档

Unity Engine

Unity Engine

LocalVariables

The local variables that Smart String placeholders resolve against when this string is formatted.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public LocalVariablesGroup LocalVariables { get; }

Remarks

Placeholders such as
{score}
look up values in this LocalVariablesGroup during formatting. A nested LocalizedString also reads the variables of the string that contains it (a chained scope).