RealDocs

UActorComponent::IsCreatedByConstructionScript

function Engine Since unknown
#include "Components/ActorComponent.h"
Access: public

Description

Returns true if this component instance was created by either the user in the Blueprint editor or by the Simple Construction Script (SCS). Components created entirely in C++ native constructors return false.

Caveats & Gotchas

  • The check compares CreationMethod against EComponentCreationMethod::UserConstructionScript and EComponentCreationMethod::SimpleConstructionScript. Components added at runtime via NewObject + RegisterComponent always return false regardless of the calling context.
  • This flag affects whether the component shows up as an inherited override target; passing it to IsEditableWhenInherited() indirectly influences which components child blueprints can modify.

Signature

ENGINE_API bool IsCreatedByConstructionScript() const;

Return Type

bool

Example

Skipping native-only components in a blueprint tool C++
for (UActorComponent* Comp : Actor->GetComponents())
{
    if (!Comp->IsCreatedByConstructionScript())
    {
        continue; // skip native C++ components
    }
    ProcessBlueprintComponent(Comp);
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.