Files
UnrealEngineUWP/Engine/Source/Editor/LevelEditor
han chu 0e226bf6a8 Problem:
"Mode Widgets" is by default disabled in game mode. The expected behavior in this case, according to feedback from content producers, should be as follows: "Mode Widgets" should be enabled by default, but the selection outline and transform widgets should be hidden. They should reappear once the user selects an actor.

Cause:
"EngineShowFlags.SetModeWidgets(false);" when entering game mode

Fix:
When entering game mode, temporarily set LevelViewportClient->bShowWidget to false while keeping the showflag "Mode Widgets" set to true. Transform widget is hidden in this manner when entering game mode, and selecting any actor will make it visible again because of the modification in SLevelViewport::OnActorSelectionChanged. The modification to SLevelViewport::ToggleGameView() makes sure that after leaving game mode, LevelViewportClient->bShowWidget is properly reset to true.

#jira UE-191508
#rb @logan.buchy

[CL 26893130 by han chu in ue5-main branch]
2023-08-07 14:23:36 -04:00
..
2023-08-07 14:23:36 -04:00