Skip to main content

create_widget_raw

Function create_widget_raw 

Source
pub fn create_widget_raw(
    owning_object: UObjectHandle,
    widget_class: UClassHandle,
) -> RustealResult<UObjectHandle>
Expand description

Create a UMG widget using the C++ CreateWidget<T>() template.

  • owning_object: a PlayerController, World, or GameInstance handle
  • widget_class: the UClass of the UUserWidget subclass to create