- Home /
Why unity applies prefab position to my reverted gameobject ?
I had a prefab created 1 month ago that i positionned and rotated in various ways and a lot of places in my scenes. This week, i have improved the prefab by modifying one instance by changing children hierarchy and adding some others. Here are the changes :
Note : ButtonSequenceYellow (old prefab parent) has been renamed p_Door (new parent prefab) and a new gameobject Door has been created to get the scripts that were on ButtonSequenceYellow .
Now, if i select another instance of the old/new prefab and use Revert, it will apply changes but also moves the position and rotation of the instance to copy the position and rotation of the prefab, which i really don't want.
To be sure i reseted every transform of the prefab, then applied the changes and then use revert again and the problem is still happening.
In case it is important, there is a Canvas inside the prefab.
So please tell me why revert doesn't ignore prefab position/rotation to keep the one of the instance and tell me how to solve this. I lost my day on this and i am very frustrated.
Unity version : 2018.2.13.f1.
Your answer
Follow this Question
Related Questions
How can I modify a variable on an instance of a prefab after I created it? 2 Answers
Setting parent causes prefab error 0 Answers
How to do not apply fields in prefab 1 Answer
Enemy only chasing pre-fab's original location, not instance's 2 Answers
Why prefab revert does not work for position and rotation? 1 Answer