SSCSEditor::AddNewComponent

Adds a component to the SCS Table

Windows
MacOS
Linux

References

Module

Kismet

Header

/Engine/Source/Editor/Kismet/Public/SSCSEditor.h

Include

#include "SSCSEditor.h"

Source

/Engine/Source/Editor/Kismet/Private/SSCSEditor.cpp

Syntax

UActorComponent * AddNewComponent
(
    UClass * NewComponentClass,
    UObject * Asset,
    const bool bSkipMarkBlueprintModified,
    bool bSetFocusToNewItem
)

Remarks

Adds a component to the SCS Table

Returns

The reference of the newly created ActorComponent

Parameters

Parameter

Description

NewComponentClass

(In) The class to add

Asset

(In) Optional asset to assign to the component

bSkipMarkBlueprintModified

(In) Optionally skip marking this blueprint as modified (e.g. if we're handling that externally)

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