UEditorEngine::MoveActorInFrontOfCamera

Moves an actor in front of a camera specified by the camera's origin and direction.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorServer.cpp

Syntax

void MoveActorInFrontOfCamera
(
    AActor & InActor,
    const FVector & InCameraOrigin,
    const FVector & InCameraDirection
)

Remarks

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.

Parameters

Parameter

Description

InActor

The actor to move

InCameraOrigin

The location of the camera in world space

InCameraDirection

The normalized direction vector of the camera

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss