Any way to make default value of output parameter for Interface function?

Hello! I’m trying to create Interface for interaction purposes.

For example, I have a function named bool CanBeRegistered() and I want this function to always return TRUE by default. Tried different solutions:

  1. Switched from bool CanBeRegistered() to void CanBeRegistered(bool& success = true), but syntax issue occured.
  2. Defined a body by “_Implementation” in InteractableInterface.cpp. Blueprint overriden function with calling parent returns false.

Any way I can define default return value for Interface function without overriding it in each blueprint classes I’m adding Interface to?

1 Like