Get Set Editor Camera

Scenegraph Studios - 1月 25, 2021

Get and Set Editor Camera Properties such as the location, rotation, or facing direction. Spawn actors at the location or infront of the editor camera to make world building faster.

  • 支持的平台
  • 支持的引擎版本
    4.26
  • 下载类型
    引擎插件
    此产品包含一款代码插件,含有预编译的二进制文件以及与虚幻引擎集成的所有源代码,能够安装到您选择的引擎版本中,并根据每个项目的需求启动。

We created this plugin from a requirement we had from another project where we place actors in front of the camera so the shots line up nicely. 


The editor camera properties are not exposed to blueprints, thus this function library exposes them to blueprints

We hope this plugin will be used as a tool for you to create scenes faster, or as a learning tool of exposing the properties if the editor camera to blueprints.


We expose these functions to a Utility Widget blueprint which you can run in the editor.

技术细节

Features: (Please include a full, comprehensive list of the features of the product)

  •  GetEditorCameraLocation
  •  GetEditorCameraFacingDirection
  •  GetEditorCameraRotation
  • SetViewLocation
  • SetViewRotation
  • SpawnExampleActor - used as an example to show how to spawn C++ classes at the location of the editor camera (or in front by multiplying the facing direction by a value).
  • Utility Widget showing the parameters of the editor camera with button click events to spawn an actor, set/get the location/rotation of the editor camera.

Code Modules: (Please include a full list of each Plugin module and their module type (Runtime, Editor etc.))

  •  UnrealEd
  • CoreUObject
  • Engine
  • Slate
  • Slatecore

Number of Blueprints: 2

ExampleUtilityWidget.uasset

BasicActor.uasset - used as an example to spawn at the location of

Number of C++ Classes: 3

GetCameraEditor.h /.cpp

GetCameraEditorBPLibrary.h / .cpp

MyActor.h / .cpp


Network Replicated: No

Supported Development Platforms: Developed on Windows10 64bit - use within the editor.

Supported Target Build Platforms: Compiled and tested on Window 10 64bit - use within editor.

Documentation: Link - Tutorial coming soon.

https://www.scenegraphstudios.com/unreal-plugin-get-set-editor-camera-properties/


Important/Additional Notes: We would love to get your feedback, or suggestions on how to improve either the plugin, or the supporting tutorial content. Epic has given us so much already, and we believe in giving back. Hopefully this plugin can help you out, or help you understand a bit more about the underlying tools.