M
M
Mishatrof2019-06-22 19:34:56
Unity
Mishatrof, 2019-06-22 19:34:56

How to optimize OnTriggerStay?

I have 100 bots, they find the enemy through he trigger enter, and he trigger stay, if they have entered the trigger for a long time, then it will work OnTriggerStay. as a result, OnTriggerStay is shown 100,000 times in my profiler. how to reduce it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question