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
Returns
Type | Description |
|---|---|
| T | The transformed value, or |
Remarks
Called once per resolved value for the locale that implements this interface. Return 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.
valueAdditional 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); } }}