When I use unity
to attach one 3Dobject to one player(camera)
by using a annimation
If the 3Dobject is enlarged in 3DMAX
the player will be also enlarged
Please help me to figure this out :roll:
When I use unity
to attach one 3Dobject to one player(camera)
by using a annimation
If the 3Dobject is enlarged in 3DMAX
the player will be also enlarged
Please help me to figure this out :roll:
thats the expected behaviour because the scale of the parent object will be applied to the child object.
you have to select the child object and alter its scale in the transform to “compensate” for the change on the parent
Thanks
But how can I call "transform to “compensate” " in C#?
also if any one can give an example
will be great too
You don’t need to do anything from the script unless you want to. If the parent object’s scale is set to 10 (ie ten times bigger), then you can set the child’s scale to 0.1 (ie, ten times smaller) to get it to its original size. If you find you need to set this from a script, you can use transform.localScale:-
transform.localScale = new Vector3(0.1f, 0.1f, 0.1f);
Thank you
I have already done this
But what I need is the scale value of the fbx(From 3DMax)
not the scale value in Unity editor
In fact sometimes the scale value is not quit right
I want to figure out
why most time 1/[parent scale value] works
sometimes not