FKismetEditorUtilities::CreateBlueprintFromActor

Take an Actor and generate a blueprint based on it. Uses the Actors type as the parent class.

Windows
MacOS
Linux

Deprecated

  • Use version that passes parameters via parameter struct

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/Kismet2/KismetEditorUtilities.h

Include

#include "Kismet2/KismetEditorUtilities.h"

Syntax

static UBlueprint * CreateBlueprintFromActor
(
    const FName BlueprintName,
    UObject * Outer,
    AActor * Actor,
    bool bReplaceInWorld,
    bool bKeepMobility,
    UClass * ParentClassOverride,
    bool bOpenInEditor
)

Remarks

Take an Actor and generate a blueprint based on it. Uses the Actors type as the parent class.

Returns

The blueprint created from the actor

Parameters

Parameter

Description

BlueprintName

The name to use for the Blueprint

Outer

The outer object to create the blueprint within

Actor

The actor to use as the template for the blueprint

bReplaceActor

If true, replace the actor in the scene with one based on the created blueprint

bKeepMobility

If true, The mobility of each actor components will be copy

ParentClassOverride

The parent class to use when creating the blueprint. If null, the class of Actor will be used. If specified, must be a subclass of the Actor's class.

bOpenInEditor

If true, open the created blueprint in the blueprint editor

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