UE5 Efficient Blueprints - Switches & Selects

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

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

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

    I’ve been coding blueprints for about 3 years now and I didn’t know most things you taught in this video. Awesome and clear!

  • @PolygonVariable
    @PolygonVariable Год назад +2

    I love using select, it just reduces lot of nodes

  • @Liquidkapu
    @Liquidkapu Год назад +1

    Great video!
    One point worth highlighting is that selects in Unreal Engine evaluate all input paths upon execution.
    This feature is excellent for simple tasks, such as choosing between strings, however, it can be suboptimal for more complex operations, like vector math.
    In such cases, it's more performant to create a custom pure function that first selects the relevant path and then executes only that path.

    • @polysiens
      @polysiens  Год назад

      Good point, but I think this is true only for string switches, but enum and int switches have bunch of optimizations, so they have close to O(1) complexity.
      Yea for more complex stuff like vectors, other solutions are better 👍

    • @Liquidkapu
      @Liquidkapu Год назад

      Oh yeah, I meant selects, not switches. (edited the orginal comment)

    • @polysiens
      @polysiens  Год назад +2

      Yea, selects check all paths and then execute the right one.@@Liquidkapu