Created
July 6, 2018 01:07
-
-
Save trentpolack/944d477a2ffd7e8aae0407514291955c to your computer and use it in GitHub Desktop.
Get the actual camera location in the UE4 viewport? MAYBE?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto world = GetWorld(); | |
if(world == nullptr) | |
return; | |
auto viewLocations = world->ViewLocationsRenderedLastFrame; | |
if(viewLocations.Num() == 0) | |
return; | |
FVector camLocation = viewLocations[0]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Widget reflector looking at the main editor viewport:

Vs. looking at the mesh viewer viewport.
