Announcement

Collapse
No announcement yet.

Blueprint Implemented interfaces in C++

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Blueprint Implemented interfaces in C++

    Hey there,

    So I created an interface in C++ that is then implemented in blueprint, what I noticed is that the InterfaceCast<> essentially always fails, looking through Wiki/Docs it seems that is a known side effect, and that the way to get to interfaces is through calling the static execute functions, you can also still call actor->Implements< UInterface >() which returns the flag as expected. What I need however is not to execute any functions but instead I need to get to the IInterface ptr, is there any gracious way of doing this?

    I can work around this by providing a derived C++ actor that already implements the interfaces I need however I would like to give the people making content the chance to implement the interfaces directly from the editor without creating N combinations of actors + interfaces.

    Thanks in advance.
Working...
X