Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorEngine
Description
Moves an actor in front of a camera specified by the camera's origin and direction. The distance the actor is in front of the camera depends on the actors bounding cylinder or a default value if no bounding cylinder exists.
| Name | MoveActorInFrontOfCamera |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
| Include Path | #include "Editor/EditorEngine.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp |
void MoveActorInFrontOfCamera
(
AActor & InActor,
const FVector & InCameraOrigin,
const FVector & InCameraDirection
)
Parameters
| Name | Remarks |
|---|---|
| InActor | The actor to move |
| InCameraOrigin | The location of the camera in world space |
| InCameraDirection | The normalized direction vector of the camera |