So I have an Enemy Prefab in which when I drag and drop my player to a public gameobject in a script attached to that Enemy and try to override it By clicking on apply all. The overrides dont get applied. In the override dropdown It again shows me the Option To Apply All.
I have encountered the same problem in the latest 2021 Unity version, I thought It was a bug (Atleast thats what I assumed after Searching some answers on Unity forum) So I changed my Unity version to 2020 LTS & Remaked my game from start. I have come a lot far in the development and till now all the overrides were applying
2 Answers
2To apply references to others objects/scripts/components in a prefab, they must be on the gameObject itself or on children of this gameObject. You cannot apply references to objects in scene as they might not be always present around your gameObject
I believe it’s because that’s the global position and that isn’t important for a prefab since it should be given a position upon instantiation. If you want to change the prefabs position you could also go into the prefab editor then manually change its position.