Skip to content

Latest commit

 

History

History
88 lines (57 loc) · 2.67 KB

tutorial.md

File metadata and controls

88 lines (57 loc) · 2.67 KB

Tutorial

Introduction Video

Multi-Branch

Multi-Branch node realizes multiple conditional branches (like if-elseif-else statement).
Comparision to the implementation on the vanilla Unreal Engine is as follows.

Vanila vs Multi-Branch

Usage

  1. Search and place Multi-Branch node on the Blueprint editor.
  2. Click [Add Pin] to add a pin pair (condition and execution).
  3. Build a logic by connecting among the nodes.

Comparison to C++ code

Multi-Branch

Above Blueprint is same as below code in C++.

if (Condition_0) {
    UKismetSystemLibrary::PrintString(GEngine->GetWorld(), "Condition 0");
} else if (Condition_1) {
    UKismetSystemLibrary::PrintString(GEngine->GetWorld(), "Condition 1");
} else {
    UKismetSystemLibrary::PrintString(GEngine->GetWorld(), "Default");
}

Additional Info

  • Some useful menu for adding/removing pins by right mouse click on the Multi-Branch node.

Conditional Sequence

Conditional Sequence node execute each relevant execution pins if each conditional pin is true.
Comparision to the implementation on the vanilla Unreal Engine is as follows.

Vanila vs Conditional Sequence

Usage

  1. Search and place Conditional Sequence node on the Blueprint editor.
  2. Click [Add Pin] to add a pin pair (condition and execution).
  3. Build a logic by connecting among the nodes.

Comparison to C++ code

Conditional Sequence

Above Blueprint is same as below code in C++.

if (Condition_0) {
    UKismetSystemLibrary::PrintString(GEngine->GetWorld(), "Condition 0");
}
if (Condition_1) {
    UKismetSystemLibrary::PrintString(GEngine->GetWorld(), "Condition 1");
}
UKismetSystemLibrary::PrintString(GEngine->GetWorld(), "Default");

Additional Info

  • Some useful menu for adding/removing pins by right mouse click on the Conditional Sequence node.

Multi-Conditional Select

Multi-Conditional Select node returns the option where the condition is true first. Comparison to the implementation on the vanila Unreal Engine is as follows.

Vanila vs Multi-Conditional Select

Usage

  1. Search and place the Multi-Conditional Select node in the Blueprint editor.
  2. Click [Add Pin] to add a pin pair (option and condition).
  3. Build a logic by connecting between the nodes.

Additional Info

  • Right mouse clicking on the Condition Sequence node opens a useful menu for adding/removing pins.