Sorry for my poor English.
I found this code.
It gets a FSceneViewProjectionData from the ULocalPlayer, and it uses the FSceneViewProjectionData to calculate a view-projection transformation matrix.
However, I can not find any way to get a FSceneViewProjectionData for level editor viewport because I can not get a ULocalPlayer without starting game.
My questions are
- How to get a FSceneViewProjectionData for level editor viewport?
- How to get the active UCameraComponent of level editor viewport? (I can calculate FSceneViewProjectionData from FMinimalViewInfo of the camera)
Please help me, thank you.