SetParent messes with scale and position
Since a few days ago, an object that I instantiate and then call SetParent on suddenly increases it's scale and changes position to 1.75 on it's own. This is weird on it's own, but the stranger thing is that I'm working in a team which uses version control, and this is only happening to me. For everyone else in the team, when they run the same scene the scale stays at 1 as expected, which is also how it worked for me up until a few days ago.
The only substantial change that happened around that time is that I upgraded my account to Unity Plus.
Does anyone know what causes this and how I can solve it? I've tried to use SetParent with worldPositionStays set to false, which seems to fix the scaling, but the position stays wrong.
Answer by kuifan · Dec 08, 2017 at 12:20 PM
Same problem here. Its changing my objects scale and position.. I have tried both
transform.SetParent (currentSlot.ConnectecdInventory.transform, true); transform.SetParent (currentSlot.ConnectecdInventory.transform, false);
with same output.
It worked in older versions of unity.
Please help with this!!
Your answer
Follow this Question
Related Questions
How to make my Player smaller if he moves the y coordinate up? 1 Answer
Keep the players position constant between two different levels 1 Answer
Can you help explain this positioning conundrum to me! 1 Answer
Instantiate not working correctly (Please help!) 1 Answer
Organising children in the local position is out of place. 2 Answers