
Hi everybody,You can try add a UI text element to your canvas where the narration text will be displayed. Ensure that the text element is set to "Center" alignment horizontally.I've a cutscene with narration text, It's centered horizontally, no problem with that, but is there a way to center it vertically ? https://basketrandom.proMy first idea was to hook a script to "setTextPosition" that will get the length of the string and roughly calculate how much I need to adapt the y position.
I tried to access ActiveTexts.CurrentText but it's always emptyThanks in advance

function txtPos(text)
  if text.Owner.tableId == eGame then   -- text is narration text
    -- Define the new text position on the screen
    text.Position = {x = game.WindowResolution.x/2 + game.ScrollPosition.x, y = game.WindowResolution.y/2 + game.ScrollPosition.y}
    return true
  end
  return false
end
registerHookFunction("setTextPosition", "txtPos")