Download

EditableText OnTextCommited ( .dll : fatal error LNK1120 )

Not Error case - OnTextChanged

// header file
UFUNCTION()
	void OnChangedBoardSizeX(const FText& Text);


// cpp file
void USimulationWidgetBase::OnChangedBoardSizeX(const FText& Text)
{
  if (ETextCommit::OnEnter) {
	BoxNesting->BoardSizeX = UUtility::GetIntFromFText(Text) == NAN ? BoxNesting->BoardSizeX : UUtility::GetIntFromFText(Text);
	BoardSizeX->SetText(FText::AsNumber(BoxNesting->BoardSizeX));
	if (AutoCheckBox && AutoCheckBox->IsChecked()) BoxNesting->NestBoxes();
  }
}

Error Case - OnTextCommitted

// header file
UFUNCTION()
    void OnChangedBoardSizeX(const FText& Text, ETextCommit::Type CommitMethod);

// cpp file
void USimulationWidgetBase::OnChangedBoardSizeX(const FText& Text, ETextCommit::Type CommitMethod)
{
  if (CommitMethod == ETextCommit::OnEnter) {
	BoxNesting->BoardSizeX = UUtility::GetIntFromFText(Text) == NAN ? BoxNesting->BoardSizeX : UUtility::GetIntFromFText(Text);
	BoardSizeX->SetText(FText::AsNumber(BoxNesting->BoardSizeX));
	if (AutoCheckBox && AutoCheckBox->IsChecked()) BoxNesting->NestBoxes();
  }
}