Variant of the trigger component that holds a persistent state and emits signals on state change.
More...
#include <FtsToggleTriggerComponent.h>
Variant of the trigger component that holds a persistent state and emits signals on state change.
◆ BindOnTriggerSignalEmitted()
| void UFtsToggleTriggerComponent::BindOnTriggerSignalEmitted |
( |
const FFtsTriggerSignalEmittedDelegate & | OnSignalEmittedEvent | ) |
|
|
overridevirtual |
◆ GetCurrentColor()
| FLinearColor UFtsToggleTriggerComponent::GetCurrentColor |
( |
| ) |
const |
|
overridevirtual |
◆ GetState()
| bool UFtsToggleTriggerComponent::GetState |
( |
| ) |
const |
Get whether the trigger is currently toggled on
- Returns
- Current state of toggle
◆ SetState()
| void UFtsToggleTriggerComponent::SetState |
( |
bool | bNewState, |
|
|
UObject * | Instigator = nullptr, |
|
|
bool | bAlwaysBroadcast = false ) |
Sets the internal state of the trigger and emits a signal
- Parameters
-
| bNewState | The new state to set |
| Instigator | Optional object responsible for the change |
| bAlwaysBroadcast | True to always emit a signal, false to only emit if new state is different from current |
◆ bTriggerState
| bool UFtsToggleTriggerComponent::bTriggerState = false |
|
protected |
The internal state of the trigger
The documentation for this class was generated from the following files: