UUserWidget::CreateWidget

Clear·2025년 5월 1일

EPortfolio docs
UUserWidget

UMG 위젯을 생성합니다.

Code

template <typename WidgetT = UUserWidget, typename OwnerType = UObject>
WidgetT* CreateWidget(OwnerType OwningObject, TSubclassOf<UUserWidget> UserWidgetClass = WidgetT::StaticClass(), FName WidgetName = NAME_None);

Paramter

  • OwningObject
    위젯을 소유할 객체
  • UserWidgetClass
    생성할 위젯의 클래스
  • WidgetName
    위젯 인스턴스의 고유 식별 이름
profile
Programmer

0개의 댓글