Method UpdateString
UpdateString(string)
Invokes the OnUpdateString event.
Declaration
protected virtual void UpdateString(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | The localized string from the StringReference. |
Remarks
You can override this method to provide custom behavior when the string is updated.
Examples
This example shows how to override the UpdateString(string) method to provide a custom behavior.
public class MyCustomLocalizedStringEvent : LocalizeStringEvent
{
protected override void UpdateString(string translatedValue)
{
Debug.Log("UpdateString called with " + translatedValue);
}
}