[UE4]C++取得蓝图控件实例
.h
/*确认密码输入框*/
UPROPERTY()
UEditableTextBox* EditableTextBoxRePassword;
.cpp
EditableTextBoxPassword = Cast<UEditableTextBox>(GetWidgetFromName(TEXT("EditableTextBox_Password")));
注册按钮点击事件
/*注册按钮点击事件*/
//ButtonRegister->OnClicked.AddDynamic(this,&URegisterUserWidget::Button_RegisterOnClickedEvent);
void URegisterUserWidget::Button_RegisterOnClickedEvent()
{
/*获取昵称 */
FString NickName = EditableTextBoxNickName->GetText().ToString(); //AccountRegisterFromServer(NickName, RePassword);
}