I posted this in answer hub too https://answers.unrealengine.com/questions/380707/actor-rotate-to-surface-normal-by-dragging-into-th.html
I just discovered the Surface Snapping checkbox in the editor but it only seems to work for static mesh and not actors.
I’ve tried searching though the source code but there doesn’t seem to be any indication as to why they behave differently. Blueprint Actors will still snap but not orient. Is this intentional or a technical limitation? Does anyone have ideas to enable it or recreate it within the Blueprint constructor?
Normally I would do my own line trace from the camera to the cursor but I can’t find commands for the editor camera. This is also a problem if I tried to make my own tool to do this: say I’m just editing a parameter and not looking at the object I’m editing or the cursor is off the viewport; the code I’m imagining would still be looking for the cursor to orient the actor and get undesirable results.