Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
uDezimiro's avatar
uDezimiro
Protege
1 year ago

scale change when grabbed

I have my gun magazine (firearm).

Gun has scale = 3.

When I release a magazine - it became smaller.  

It's  because parent now is null. 

and scale = 3 not inherited from parent and scale becase 1 again.

 

I fixed that by use 

magazine.transform.SetParent(null, true);   (true - its worldPositionStays)

 

but when I grab this magazine by hand - it became small again. 

This is so stupid. How can I make model big and keep scale 1. (to avoid this sizechange?)

 

if how can I scale it when grab? (I don't like this idea.. but..)

 

p.s. maybe there is a way to resize whole object without changing it scale? resize somehow and make it big with scale 1 in UNITY. ?

Replies have been turned off for this discussion