protected void PerFrameRepaint(EditorFrameController controller, int frameIndex, Subdivision currentSubdivision) { if (currentSubdivision.IncludesIndex(frameIndex)) { controller.gameObject.SetActive(true); controller.SetVisuals(Subdivision.GetHighestSubdivisionOfFrame(frameIndex).Color); controller.SetWidth(GetCurrentFrameWidth()); } else { controller.gameObject.SetActive(false); } }