언리얼 엔진 5 (1) 썸네일형 리스트형 [언리얼 엔진 5] c++로 간단한 UI 생성 우선 UI로 사용할 위젯 블루프린트를 생성하고 버튼 등 필요한 것들을 추가한다. 위젯에 적용할 c++ 클래스를 생성한다. public: UFUNCTION(BlueprintCallable) void MenuSetup();초기 설정을 위한 Setup 함수를 블루프린트에서 호출 가능하도록 선언한다. void UMenu::MenuSetup(){ // visible, inputmode, 마우스 등 위젯 초기 설정 AddToViewport(); SetVisibility(ESlateVisibility::Visible); bIsFocusable = true; UWorld* World = GetWorld(); if (World) { APlayerController* PlayerController = World->Get.. 이전 1 다음