but I am not able to figure out how. So, I guess I am asking for an example of how to use this function.
Or maybe there is another way of doing it. Either way, please help. Thanks.
There is a function, that is doing exactly what this “Evaluate Chooser” node does:
/**
* Evaluate a chooser table and return the list of all selected UObjects
*
* @param ContextObject (in) An Object from which the parameters to the Chooser Table will be read
* @param ChooserTable (in) The ChooserTable asset
* @param ObjectClass (in) Expected type of result objects
*/
UFUNCTION(BlueprintPure, meta = (BlueprintThreadSafe, BlueprintInternalUseOnly = "true", DeterminesOutputType = "ObjectClass"))
static UE_API TArray<UObject*> EvaluateChooserMulti(const UObject* ContextObject, const UChooserTable* ChooserTable, TSubclassOf<UObject> ObjectClass);
It’s in UChooserFunctionLibrary class. To use it, you need to include “ChooserFunctionLibrary.h” and add “Chooser” module in your *.Build.cs file.