How to Cast Variables in Unreal Engine

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 4

  • @taariqmartin7743
    @taariqmartin7743 Месяц назад +1

    You know that an interface would make it use less ram that's why we use it instead of casting if i migrate this to a other project I would have problems if I have less ram I would have problems and you say instead of casting I thought they guy is the goat he knows something I don't but it's the other way around I'm sorry with all respect I'll subscribe to you soon but do your research because this is bad

    • @GraycenMacNeill
      @GraycenMacNeill  Месяц назад +1

      This is all correct, interfaces are safer and don't run the risk of memory leaks (I have run into many issues with casting lol), but casting is also very simple with direct access to different blueprints without implementing the interface into the BP's class settings. Casting in "some" scenarios can be better for performance, but leads to additional memory overhead, but this tutorials was just to be very straightforward and easy for people to understand. I should have mentioned the drawbacks to casting in the video. Thank you for your comment 😁

    • @taariqmartin7743
      @taariqmartin7743 Месяц назад +2

      ​@GraycenMacNeill I understand what you are saying and I only now see that there is casting in the title lol so that's on me my apologies new subscriber

    • @GraycenMacNeill
      @GraycenMacNeill  Месяц назад +1

      @@taariqmartin7743 Hey! I just created a video explaining using blueprint interfaces versus casting due to your recommendation. Same goal as this video, except we use interfaces instead of casting 😀