UNREAL ENGINE | INTERFACES (BP + C++)

Sdílet
Vložit
  • čas přidán 11. 09. 2024

Komentáře • 6

  • @RealDaveTheFreak
    @RealDaveTheFreak Před rokem +1

    Thank you. Finally a zero bs video, clean and simple. Much appreciated! 😀👌

  • @Guraw
    @Guraw Před rokem +1

    Excellent video 🔥. Liked and subscribed!

  • @CoffeeCala
    @CoffeeCala Před 2 lety +1

    Welcome back :)
    Greetings, GamedevCala

  • @marcapouli7805
    @marcapouli7805 Před 4 měsíci

    Hi, and thank you for the tutorial. I'm having a hard time trying to trigger an interface function inside of my game mode
    I've adapted you code to mine :
    IMyInterface::Execute_MyFunction(GetWorld()->GetAuthGameMode());
    I had to remove "this" otherwise visual says there are too many arguments, and I still get an error saying "argument of type AGameModeBase *" is incompatible with parameter of type "UObject *"
    I'm very confused, interfaces are meant to avoid casting, GameModeBase still comes from UObject, but here it seems I need to add a cast? Maybe also an include?
    GPT4 doesn't know so I hope I can get some advice, thanks

    • @KITATUS
      @KITATUS  Před 4 měsíci +1

      Did you include the #include for GameMode?

    • @marcapouli7805
      @marcapouli7805 Před 4 měsíci

      @@KITATUS That was the issue, thanks a ton !!