There is another Gotcha in Camera2. As with Focus, sometimes the list will contain the same entry more than once:
In this case the btnScene gets to 11, then jumps back to 5 and never gets through the whole list.
My solution has been to simply save the index number an use that instead of getting where we are at with scenes.IndexOf(cam.SceneMode)
In this case the btnScene gets to 11, then jumps back to 5 and never gets through the whole list.
My solution has been to simply save the index number an use that instead of getting where we are at with scenes.IndexOf(cam.SceneMode)