Navigation
API > API/Plugins > API/Plugins/VCamCore > API/Plugins/VCamCore/UVCamStateSwitcherWidget
Description
Switches to given state - if the state transition is valid, UpdateConnectionTargets will be called. If CurrentState == NewState, then this call will be ignored (unless bForceUpdate == true).
| Name | SetCurrentState |
| Type | function |
| Header File | /Engine/Plugins/VirtualProduction/VirtualCameraCore/Source/VCamCore/Public/UI/Switcher/VCamStateSwitcherWidget.h |
| Include Path | #include "UI/Switcher/VCamStateSwitcherWidget.h" |
| Source | /Engine/Plugins/VirtualProduction/VirtualCameraCore/Source/VCamCore/Private/UI/Switcher/VCamStateSwitcherWidget.cpp |
UFUNCTION (BlueprintCallable, Category="Connections")
bool SetCurrentState
(
FName NewState,
bool bForceUpdate,
bool bReinitializeConnections
)
Parameters
| Name | Remarks |
|---|---|
| NewState | The new state to switch to |
| bForceUpdate | Call UpdateConnectionTargets even if the CurrentState == NewState |
| bReinitializeConnections | Parameter to pass to UpdateConnectionTargets. If true, ReinitializeConnections will be called. |