Navigation
API > API/Plugins > API/Plugins/RemoteControlLogic > API/Plugins/RemoteControlLogic/Behaviour > API/Plugins/RemoteControlLogic/Behaviour/Builtin > API/Plugins/RemoteControlLogic/Behaviour/Builtin/Conditional
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- URCBehaviour
- URCBehaviourConditional
References
| Module | RemoteControlLogic |
| Header | /Engine/Plugins/VirtualProduction/RemoteControl/Source/RemoteControlLogic/Public/Behaviour/Builtin/Conditional/RCBehaviourConditional.h |
| Include | #include "Behaviour/Builtin/Conditional/RCBehaviourConditional.h" |
Syntax
UCLASS ()
class URCBehaviourConditional : public URCBehaviour
Remarks
[Conditional Behaviour]
Supports unique conditions per action that allow powerful Logic & Rigging of multiple usecases including Tricode based multi-mapping (selector behaviour), simulation of Hide On Empty behaviours, etc.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< URCVirtualPropertySelfContainer > | Comparand | Virtual property used to build the Comparand - i.e. the property with which the Controller will be compared for a given condition | |
| TMap< TObjectPtr< URCAction >, FRCBehaviourCondition > | Conditions | Data storage for Actions and related Conditions; stored as a mapping of Action object and associated condition data Each Action is associated with a unique condition (for the Conditional Behaviour) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| URCAction * | AddConditionalAction
(
const TSharedRef< const FRemoteControlField > InRemoteControlField, |
Add a Logic action using a remote control field as input | |
| FText | GetConditionTypeAsText
(
ERCBehaviourConditionType ConditionType |
User-friendly text representation of a condition enum. | |
| void | OnActionAdded
(
URCAction* Action, |
~ OnActionAdded ~ Invoked after a new condition action has just been created. |
Overridden from URCBehaviour
| Type | Name | Description | |
|---|---|---|---|
| bool | CanHaveActionForField
(
const TSharedPtr< FRemoteControlField > InRemoteControlField |
Whether we can create an action pertaining to a given remote control field for the current behaviour | |
| URCAction * | DuplicateAction
(
URCAction* InAction, |
Duplicates an Action belonging to us into a given target behaviour | |
| void | ExecuteInternal
(
const TSet< TObjectPtr< URCAction > >& InActionsToExecute |
Execute all the action if not provided a valid Action otherwise will only execute the given action | |
| void | Initialize () |
Initialize behaviour functionality | |
| void | NotifyActionValueChanged
(
URCAction* InChangedAction |
Called when an action value changed | |
| bool | Whether the behaviour support property id |