Skip to main content
Discovery icon for Official Unity Discord Discord server

Official Unity Discord

25,830 Online
140,050 Members
# 💻┃code-beginner3 people

splitting localized strings in Unity

Splitting localized strings into multiple UI events requires smart strings or delimiter parsing instead of relying on word counts.

  • Splitting a localized string by the first space fails when object names span multiple words or differ in length across languages
  • Smart strings allow embedding multiple parameters into a single entry so separate parts can be selected as needed
  • A delimiter like a pipe or newline can separate parts within a single LocalizeStringEvent, which routes to a custom method for splitting and assignment
  • Choosing a delimiter effectively prevents using that character in object names across all localized languages
Summarized from recent messages, might be inaccurate

More conversations

Talk, Play, &
Hang Out

Find your space to hang out, discuss the latest updates with the party chat, and see who's down to join your next match.
Get App