Localization support for ActionButton

ChristianWiele

Active member
Hi,

do you plan on supporting localization also for the action buttons? Right now there is no event to hook into for doing any kind of localization when the name is set on the button. The "Cancel" is even hard coded for the cancel button.

Thanks, Christian
 
Ah, I missed that, sorry.

I added it:
Code:
[Tooltip("The on click Unity Action.")]
[SerializeField] internal StringUnityEvent m_OnTextChange;

Code:
/// <summary>
/// Set the name of the button.
/// </summary>
/// <param name="newName">The new name.</param>
public virtual void SetButtonName(string newName)
{
    m_Text.text = newName;
    m_OnTextChange?.Invoke(newName);
}

Unfortunatly I read your post right after making an update. So this will be included in a few weeks, but you can already add it in your project.
 
Top