When a function takes an interface as a parameter, calling that function from a blueprint implementing the interface does not recognize the parameter unless the blueprint's parent class directly inherits the interface.

No- behavior occurs in 4.14.3 binary (Cl 3249277)

Steps to Reproduce
  1. Open attached project
  2. PIE & Press "Y"
    • note "NewBlueprint_### is printed to screen (newListener is set)
  3. In VS, open MyActor.h
  4. Comment out `, public ITestInterface`
  5. Compile
  6. In the editor, open TestActor
  7. Click Class Settings and Add Test Interface in Details panel
  8. Compile TestActor
  9. PIE & Press Y

newListener variable is not set

When the blueprint implements the interface, calling function recognizes value passed in as interface reference

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

Login to Vote

ComponentGameplay - Blueprint
Affects Versions4.15
CreatedMar 16, 2017
UpdatedFeb 20, 2018