FActorFactoryAssetProxy::GetFactoryForAsset

Find the appropriate actor factory for an asset by type.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/AssetSelection.h

Include

#include "AssetSelection.h"

Source

/Engine/Source/Editor/UnrealEd/Private/AssetSelection.cpp

Syntax

static UActorFactory * GetFactoryForAsset
(
    const FAssetData & DropData,
    bool bRequireValidObject
)

Remarks

Find the appropriate actor factory for an asset by type.

Returns

the factory that is responsible for creating actors for the specified asset type.

Parameters

Parameter

Description

AssetData

contains information about an asset that to get a factory for

bRequireValidObject

indicates whether a valid asset object is required. specify false to allow the asset class's CDO to be used in place of the asset if no asset is part of the drag-n-drop

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