USwitchActorFactory

The only purpose of this class is to trigger a slightly different code path within [FLevelEditorViewportClient::TryPlacingActorFromObject](API\Editor\UnrealEd\FLevelEditorViewportClient\TryPlacingActorFromObject) when dragging and dropping a SwitchActor into the viewport, so that the SwitchActor labels get sanitized by [FActorLabelUtilities::SetActorLabelUnique](API\Editor\UnrealEd\Editor\FActorLabelUtilities\SetActorLabelUnique) and don't repeatedly increment

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

VariantManagerContentEditor

Header

/Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContentEditor/Public/SwitchActorFactory.h

Include

#include "SwitchActorFactory.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(MinimalAPI, Config=Editor, CollapseCategories, HideCategories=Object)
class USwitchActorFactory : public UActorFactory

Remarks

The only purpose of this class is to trigger a slightly different code path within FLevelEditorViewportClient::TryPlacingActorFromObject when dragging and dropping a SwitchActor into the viewport, so that the SwitchActor labels get sanitized by FActorLabelUtilities::SetActorLabelUnique and don't repeatedly increment

Constructors

Name Description

Public function

USwitchActorFactory

(
    const FObjectInitializer& ObjectIn...
)

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