Search Unity

Physics2D.OverlapCircleAll vs OnTriggerStay ~ PERFORMANCE

Discussion in 'Physics' started by Goty-Metal, Jan 15, 2021.

  1. Goty-Metal

    Goty-Metal

    Joined:
    Apr 4, 2020
    Posts:
    168
    So i'm currently creating effect/damage temp areas, where any character passing over gets damage over time / slow etc, i'd like to know your opining about using Physics2D.OverlapCircleAll() on Update() to detect characters in range VS OnTriggerStay() in terms of performance, usually will be 0 to 5 characters on these areas.

    Thanks in advance <3