How do I edit prefabs from scripts?

Agreed. Other rants including my own are here: Custom Editor & new Prefabs - how to setup overrides?

Looks like you might be missing UnityEditor.PrefabUtility.RecordPrefabInstancePropertyModifications(eachComponentYouTouch);

7 Likes