Navigation
API > API/Plugins > API/Plugins/RigVM
Chooses between two values based on a condition
| Name | FRigVMDispatch_If |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMFunctions/RigVMDispatch_If.h |
| Include Path | #include "RigVMFunctions/RigVMDispatch_If.h" |
Syntax
USTRUCT (
Meta=(DisplayName="If", Category="Execution", Keywords="Branch,Condition", NodeColor="0,1,0,1"))
struct FRigVMDispatch_If : public FRigVMDispatch_CoreBase
Inheritance Hierarchy
- FRigVMDispatchFactory → FRigVMDispatch_CoreBase → FRigVMDispatch_If
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigVMDispatch_If() |
RigVMFunctions/RigVMDispatch_If.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| ConditionName | const FLazyName | RigVMFunctions/RigVMDispatch_If.h | |
| FalseName | const FLazyName | RigVMFunctions/RigVMDispatch_If.h | |
| ResultName | const FLazyName | RigVMFunctions/RigVMDispatch_If.h | |
| TrueName | const FLazyName | RigVMFunctions/RigVMDispatch_If.h |
Functions
Public
Overridden from FRigVMDispatchFactory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const TArray< FRigVMTemplateArgumentInfo > & GetArgumentInfos
(
FRigVMRegistryHandle& InRegistry |
Returns the arguments of the template | RigVMFunctions/RigVMDispatch_If.h | |
| Returns meta data on the property of the permutations. | RigVMFunctions/RigVMDispatch_If.h | ||
virtual FName GetArgumentNameForOperandIndex
(
int32 InOperandIndex, |
Returns the name to use for the branch info / argument based on the operand index. | RigVMFunctions/RigVMDispatch_If.h | |
virtual bool IsSingleton() |
Returns true if the dispatch uses the same function ptr for all permutations | RigVMFunctions/RigVMDispatch_If.h | |
virtual FRigVMTemplateTypeMap OnNewArgumentType
(
const FName& InArgumentName, |
This function is deprecated, please use GetPermutationsFromArgumentType returns the new permutation argument types after a new type is defined for one argument this happens if types are being loaded later after this factory has already been deployed (like UUserDefinedStruct) | RigVMFunctions/RigVMDispatch_If.h |
Protected
Overridden from FRigVMDispatchFactory
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FRigVMFunctionPtr GetDispatchFunctionImpl
(
const FRigVMTemplateTypeMap& InTypes, |
RigVMFunctions/RigVMDispatch_If.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void Execute
(
FRigVMExtendedExecuteContext& InContext, |
RigVMFunctions/RigVMDispatch_If.h |