Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FPreviewScene
Description
Adds a component to the preview scene. This attaches the component to the scene, and takes ownership of it.
| Name | AddComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/PreviewScene.h |
| Include Path | #include "PreviewScene.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PreviewScene.cpp |
virtual void AddComponent
(
class UActorComponent * Component,
const FTransform & LocalToWorld,
bool bAttachToRoot
)