I’m attempting to set a game object to be the
UnityEditor.Selection.activeGameObject inside of the
MonoBehaviour.OnDrawGizmos() method. It works for a frame and then immediately deselects the gameObject.
I have also tried
Selection.activeTransform = transform and even copying the
Selection.objects array and adding one more Object and reassigning it, to no avail.