ドキュメント

Unity Engine

Unity Engine

PostProcessValue<T>(T)

Returns the transformed value, or the value unchanged.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
T PostProcessValue<T>(T value)

Parameters

value

T
The resolved value.

Returns

Type

Description

TThe transformed value, or
value
when the implementation leaves it alone.

Remarks

Called once per resolved value for the locale that implements this interface. Return
value
unchanged for types the implementation does not transform. An exception thrown here propagates to whatever asked for the localized value, so handle unexpected input rather than throwing.
Additional Resources: Locale
Run a locale's transform over a resolved value.

Examples

namespace Unity.Localization.Samples{ public static class PostProcessValueExample { public static string Transform(IPostProcessValueLocale locale, string value) { return locale.PostProcessValue(value); } }}