Navigation
API > API/Plugins > API/Plugins/VCamCore > API/Plugins/VCamCore/UI > API/Plugins/VCamCore/UI/Switcher > API/Plugins/VCamCore/UI/Switcher/UVCamStateSwitcherWidget
References
| Module | VCamCore |
| Header | /Engine/Plugins/VirtualProduction/VirtualCameraCore/Source/VCamCore/Public/UI/Switcher/VCamStateSwitcherWidget.h |
| Include | #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
)
Remarks
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).
Parameters
| Name | Description |
|---|---|
| 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. |