Module |
|
Header |
/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Public/BaseGizmos/GizmoRenderingUtil.h |
Include |
#include "BaseGizmos/GizmoRenderingUtil.h" |
Source |
/Engine/Source/Runtime/Experimental/InteractiveToolsFramework/Private/BaseGizmos/GizmoRenderingUtil.cpp |
namespace GizmoRenderingUtil
{
const FSceneView * GizmoRenderingUtil::FindFocusedEditorSceneView
(
const TArray< const FSceneView * > & Views,
const FSceneViewFamily & ViewFamily,
uint32 VisibilityMap
)
}
This function searches the input Views list for the global currently-focused FSceneView that was last set in SetGlobalFocusedEditorSceneView().
that the Views pointers are different every frame, and we are calling SetGlobalFocusedEditorSceneView() on the Game thread but this function from the Render Thread. So it is entirely possible that we will "miss" our FSceneView and this function will return NULL. Implementations need to handle this case.