The ray casting and collision detection methods in the Physics and Physics2D objects that return arrays will allocate the array on each call, which can affect performance, especially if called ...