Skip to content
RED SAGSkills
medium10 pts · first answer countsgame-enginesunityperformance

Finding the player every frame

Each of 200 enemies calls FindObjectOfType<Player>() (FindFirstObjectByType in Unity 6) in Update. The game slows down. Why, and what is better?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions