Description

Trying to use the Evaluate Chooser node in the All Results mode with a chooser table that returns the Subclass Of type results in a compilation error ("Array of Actor Object References is not compatible with Object Reference"). It compiles error free when using the First Result mode.

Steps to Reproduce
  • Create a new Third Person template project.
  • Activate the Chooser plugin and restart the engine
  • Create two Blueprint classes derived from Actor, name them BP_ActorA and BP_ActorB
  • Create a Chooser Table of type Generic Chooser, set the Result Type to SubClass Of and Result Class to Actor. Name it CT_ActorSubClass.
  • Open CT_ActorSubClass and add two Rows of Class. Select BP_ActorA and BP_ActorB from the dropdown for each row. Save and close the Chooser Table.
  • Create another Blueprint class derived from Actor and name it BP_EvaluateChooser. In its EventGraph, add an Evaluate Chooser node and connect its execution pin to the Event tick
  • Click the Evaluate Chooser node and in the Details panel, select CT_ActorSubClass for the Chooser field and All Results for Mode
  • Add a variable (by clikcing the + sign in the left panel), derive it from Actor in the Object Types and change it to a Class Reference. Name the variable "Random Actor"
  • From the Evaluate Chooser's Result output pin, pull off a "Random Array Item" function node
  • pull in a Set Random Actor node, connect its input with the output from the RANDOM node and connect the execution pin to the Evaluate Chooser node.
  • Press Compile. There should be an error saying "Array of Actor Object References is not compatible with Object Reference"

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-289406 in the post.

0
Login to Vote

Unresolved
ComponentUE - Anim - Gameplay
Affects Versions5.5.45.65.7
CreatedMay 22, 2025
UpdatedMay 23, 2025
View Jira Issue