[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);
}

 

posted on 2018-04-01 15:54  一粒沙  阅读(3854)  评论(0编辑  收藏  举报