- Home /
Understanding prefab updating its instances
When does a prefab update it's instances?
Say I do the following:
- Create a new Unity 4.x project
- Add a cube to the scene
- Drag the cube to the project panel; creating a prefab
- Select that new prefab and modify its Y rotation to 30
- Select the cube in the scene again and see a Y rotation still at 0
Why isn't the cubes Y rotation updated to 30? Is the a way to get the prefab to propagate the rotation change to its instances?
Answer by dorpeleg · Nov 13, 2013 at 02:24 PM
Click the the cube, in the inspector you have "revert" this will revert the prefab in scene to the state of the prefab in project.
Same goes to "apply", if you change stuff in the cube in the scene and press apply, it will update the prefab in the project.
Thanks for the reply dorpeleg, but I tried this with the cube in the scene as I couldn't find "revert" on the prefab. It didn't update the scenes cube to a 30° rotation. :-/
Yes, revert, apply etc is only on prefabs in scene and not prefabs in project.
Doing revert should have worked I think... I'll test it and get back to you.
Your answer
Follow this Question
Related Questions
Issues with tracking prefab instances and gameobject naming (JS) 1 Answer
Changing prefab doesn't update instances (in scene aswell as in other prefabs).. 3 Answers
Prefab instances not renaming when prefab is renamed? 1 Answer
How can I modify a variable on an instance of a prefab after I created it? 2 Answers