Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PostProcessValue<T>(T)

Returns the transformed value, or the value unchanged.
Read time 1 minuteLast updated 11 days ago

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); } }}