More work on focus, and good docs

This commit is contained in:
2026-04-22 22:52:04 -04:00
parent a964211cc8
commit a689d59ea0
11 changed files with 391 additions and 354 deletions

View File

@@ -80,9 +80,6 @@ public:
UPROPERTY()
FHitResult CurrentLookAt;
// The last widget whose focus request was granted.
TObjectKey<UWidget> LastWidgetGrantedFocus;
// The single top-level UUserWidget added to the viewport. All
// top-level UI widgets are children of RootCanvas inside it.
UPROPERTY()
@@ -94,14 +91,5 @@ public:
UPROPERTY()
UlxRootCanvasPanel *RootCanvas = nullptr;
// The viewport client uses this to notify us that the user
// clicked on a focusable widget.
void ClickToFocus(TSharedRef<SWidget> Widget);
private:
TWeakPtr<SWidget> ClickToFocusTarget;
public:
bool MustCallLookAtChanged = false;
};