Previously I wanted to detect if you had the prefab selected in Project View, which I guess is impossible after nested prefabs and Prefab Mode were introduced in Unity 2018.2. Unless someone has figured it out since?
However, is there a way to detect if we’re editing the prefab (the user clicked “Open Prefab” to edit the prefab itself)? Because it shows a continuous hourglass there when that’s selected for some reason and I could show a warning that you’re not allowed to edit the prefab (it’s for one of my plugins) and exit. Which would solve the issue, if it’s detectable at all from code.
Thanks!
-Brian