public static Selectable FindSelectable(this UFEScreen screen, Vector3 direction) { GameObject currentGameObject = UFE.eventSystem.currentSelectedGameObject; if (currentGameObject == null) { return(screen.FindFirstSelectable()); } else { return(currentGameObject.FindSelectable(direction, screen.wrapInput) ?? screen.FindFirstSelectable()); } }
public static GameObject FindFirstSelectableGameObject(this UFEScreen screen) { Selectable selectable = screen.FindFirstSelectable(); return(selectable != null ? selectable.gameObject : null); }