Navigation
API > API/Plugins > API/Plugins/VariantManagerContent
Switch Actor allows quickly toggling the visibility of its child actors so that only one is visible at a time. It can also be captured with the Variant Manager to expose this capability as a property capture
| Name | ASwitchActor |
| Type | class |
| Header File | /Engine/Plugins/Enterprise/VariantManagerContent/Source/VariantManagerContent/Public/SwitchActor.h |
| Include Path | #include "SwitchActor.h" |
Syntax
UCLASS (MinimalAPI)
class ASwitchActor : public AActor
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → AActor → ASwitchActor
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ASwitchActor
(
const FObjectInitializer& Init |
SwitchActor.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastSelectedOption | int32 | SwitchActor.h | ||
| OnSwitchActorSwitch | FOnSwitchActorSwitch | SwitchActor.h | ||
| SceneComponent | TObjectPtr< class USceneComponent > | Exposing our root component like this allows manual Mobility control on the details panel. | SwitchActor.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOnSwitchActorSwitch & GetOnSwitchDelegate() |
SwitchActor.h | ||
| SwitchActor.h |
|
||
int32 GetSelectedOption() |
SwitchActor.h |
|
|
void SelectOption
(
int32 OptionIndex |
SwitchActor.h |
|