Files
TheracUE/Source/MyProject/Private/ModeInputTextBox.cpp

12 lines
326 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "ModeInputTextBox.h"
void UModeInputTextBox::HandleOnTextChanged(const FText& inText) {
auto & s = inText.ToString();
auto lastChar = s.LeftChop(1);
lastChar.ToUpperInline();
SetText(FText::FromString(lastChar));
}