Unreal Engine Slate UI examples
Cheat sheet to add user interface elements (buttons, combobox etc) in unreal - 08/2023 - #Jumble
Push Button

Adding this to some AActor, component etc. adds a push button to the "Details" pannel:
// .hpp UFUNCTION(BlueprintCallable, CallInEditor) void myFun(); // .cpp // Callback when pushed void AMyActor::myFun() { UE_LOG(LogTemp, Error, TEXT("This is a test")); }
Other resources
- https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Slate/Widgets/
- https://ikrima.dev/ue4guide/editor-extensions/slate/editor-customization/
No comments