gameobject.transform.parent = player.transform Makes gameobject weird ! :(
gameobject.transform.parent = player.transform; is messing stuff up. im getting mad cause I have a gameobject and I want to pick it up but when I pick it up the SIZE changes by a random number. my gameobject is a 0.5 sphere so this makes a big difference to the gameobject making it all skinnhy and weird but it is supposed to be a circle. I have no other code that could be doing this. is there a way to make it stop? is there a way I could make the gameobject follow my player just like if it was a child of my player? what do I do?
BEFORE IT IS A CHILD OF MY PLAYER
AFTER IT IS A CHILD OF MY PLAYER
No don't say its FOV cause its not a view thing. it changes in the hierarchy I can see it change when it becomes a child of my player. see how its small and round before its a child? it turns big and ovalish when it becomes a child of my player. Why is thois happeneing
Answer by jgodfrey · Apr 19, 2016 at 07:07 PM
When you parent the ball to the player, the child object inherits the scale from the parent. Here's one possible solution:
http://answers.unity3d.com/questions/147816/how-to-avoid-scaling-heritage-when-parenting.html
Your answer
Follow this Question
Related Questions
Why does my camera rotate on the x axis because of this script? What is wrong with the script? 0 Answers
Continuously monitor childrens properties 1 Answer
C# .ToString Method Not executing 0 Answers
Cant get setParent to actually set the parent for child. 0 Answers
How do I change the child object offset from the parent object? 0 Answers