Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

IPostProcessValueLocale.PostProcessValue

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public T PostProcessValue(T value);

Parameters

Parameter Description
value The resolved value.

Returns

T The transformed value, or value when the implementation leaves it alone.

Description

Returns the transformed value, or the value unchanged.

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.

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