Major changes:
- The widget reflector UI now uses tabs. The hierarchy and stats views have been moved to tabs, and new tabs have been added to support picking widgets from a snapshot.
- The widget reflector node trees are no longer using UObject types. The idea here was to make the serialization easier, but it didn't work and I ended up using JSON instead.
- When you take or load a widget snapshot, you're now shown the screenshot of the window associated with that snapshot, and are able to pick widgets from it as you would do with a live tree.
API changes:
- The tab spawners for the widget reflector and atlas visualizers are now registered automatically when the SlateReflector module is loaded. These are now the only way to create these windows.
- The tabbed layout within the widget reflector has made it impossible to create the widget reflector unless spawned via a tab manager. To this end, the following functions have been removed from ISlateReflectorModule:
- GetWidgetReflector
- GetAtlasVisualizer
- GetTextureAtlasVisualizer
- GetFontAtlasVisualizer
- These functions used to be used to create a raw widget reflector or atlas viewer widget.
- If you were doing this because you were placing it into your own window, you can take advantage of the fact that the widget reflector tab spawner is always available, and use the global tab manager to create your window and place a spawned widget reflector tab inside it - SummonPerfTestSuite in SPerfSuite.cpp provides an example of this.
- If you were doing this in the handler of your own widget reflector tab spawner, you can either just use the standard widget reflector tab spawner instead (you need to load the SlateReflector module once, and then "WidgetReflector" will be available to spawn via the global tab manager), or you can just use the DisplayWidgetReflector function of ISlateReflectorModule (which will internally do the same thing).
[CL 2661609 by Jamie Dale in Main branch]
When used effectively the SInvalidationPanel can shave milliseconds off your Slate time on a complicated hierarchy of widgets. Provided those widgets don't need hit testing or input, this can be a very useful widget to use. Scenarios like a HUD are the primary target of this panel, future advances will hopefully make it possible to be used in conjunction with a UI that needs input.
#codereview matt.kuhlenschmidt, nick.atamas
[CL 2609569 by Nick Darnell in Main branch]
The underlying changes have been made to allow the widget reflector to visualize a live or snapshotted tree.
Submitting these now as the API has changed quite a bit and any future changes will likely conflict.
The "Snapshot" button is implemented but is currently commented out as it's not fully functional (I still need to take a screenshot of the windows so you can pick against their saved state).
[CL 2546993 by Jamie Dale in Main branch]
*because of tons of changes, I will supply the changelists in the email because it was too large for this checkin*
[CL 2483008 by Todd Eckert in Main branch]
UE-9790 - Fixing widget reflector to not crash on UMG widgets that have no associated blueprint asset.
#lockdown Matt.Kuhlenschmidt
[CL 2449857 by Matthew Griffin in Main branch]
* Removed SWidget:: GetCreatedInFile, GetCreatedInFileFName, GetCreatedInLineNumber.
* Added GetCreatedInLocation() -> FName as a non-redundant replacement, updated all code usages.
* This shrinks SWidget size by 16 bytes and reduces ambiguity on which ones to use.
* Implemented ToString() in terms of GetReadableLocation().
#codereview:max.preussner
[CL 2430545 by Wes Hunt in Main branch]
* See SlateStats.h for details on the new system, which allows for full hierarchical profiling with limited overhead.
* Moved SWidget::GetVisibility() out of line so we can instrument it without a full recompile.
* Widget debug info now uses FName to store the line number of the file. Keeps it in one place and the new stats system can utilize it as an FName.
* Exposed SWidget CreatedInFile debug info as an FName so new stats system can use it.
* FSlateVertex no longer uses FVector4, which is an aligned struct. Switched to float[4] instead. Goes from 48 to 36 bytes.
#codereview:nick.atamas,matt.kuhlenschmidt
[CL 2417281 by Wes Hunt in Main branch]
Moved the existing atlas visualizer out of the Slate RHI renderer and instead made the resource manager for each renderer implement the ISlateAtlasProvider interface to provide information about its current texture atlases. FSlateFontCache implements ISlateAtlasProvider for the font atlas viewer.
Improved the atlas visualizer and added support for zooming and panning of the atlas pages. This helps greatly when viewing font atlases as they can be as large as 2048x2048.
#codereview Matt.Kuhlenschmidt
[CL 2371483 by Jamie Dale in Main branch]