I’m writing some editor scripts and I’m using Selection.activeGameObject to programmatically select objects in the editor. The problem is, whenever I select an object programmatically the Copy/Paste/Delete/Duplicate commands from the Edit menu are disabled.
Does anyone know how to programmatically select an object and enable the Edit menu commands?