Description

 

Originally marked Won't Fix in 2017. Issue reopened on May 1, 2024.

All inputs of a Select blueprint node are evaluated, even though in the end only one value is selected. This is wasteful work. It would be good to improve the Select node implementation so that:

  • The select condition is evaluated first
  • Only the selected input's connected nodes are evaluated, while the other inputs are ignored

 

[Image Removed]

Steps to Reproduce
  • Create a blueprint BP_Test
  • Place Select Int node
  • To both inputs A and B, connect a different BlueprintPure function that returns some int. Print some string inside those functions to see when they are executed.
  • Set the Select Int node's condition to true or false, whichever
  • Print the output value of the Select Int node, for example on BeginPlay and placing the actor in the level
  • Observe: Both functions are executed
  • Desired: Only the node(s) connected to the selected input pin is executed

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

19
Login to Vote

Backlogged
ComponentUE - Gameplay - Blueprint
Affects Versions4.8.34.94.10
CreatedAug 15, 2015
ResolvedApr 26, 2017
UpdatedMay 3, 2024
View Jira Issue