Why 2dCollider editor will be auto eset after any operation ?


I use the box collider to edit the colliding area ,when I change any position of those four reference points,the “status” of the editor will set back …
So I have to click the “Edit Collider” button again to continue the colliding-area edition.

I was doing it on Prefab… But it is OK within hireachy gameObject…

Yes, behaviour was introduced when the new prefab system came in. Internally the prefab edit stuff was causing an inspector reload when you edited a property which triggered the exit of the collider editing. It has been fixed in later Unity versions (I’d need to check which) but I’m not sure of the backport fix status.

If you take a copy of your project and try in 2019.3 as I believe it works there.

I can chase to see what’s happening with backports there.

Oh,I see.Thanks:)