기술 자료

Unity Engine

Unity Engine

PostProcessValue<T>(T)

Returns the transformed value, or the value unchanged.
읽는 시간 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); } }}