I have a list “heights” containing items as floats. I want to set a variable “highestValue” that updates every frame and returns the value of the greatest value in the list.
Floats are constantly being added and removed from the list, but I want to search through the list for the highest value every frame. Does anyone know the best way I could do that.
I’m using unity Javascript if it matters.