I change the scale of the gameObj in the editor and see that its collider’s size is being changed as well. Yet, when I click to see the numbers in the editor for the size of the collider they don’t seem to change. Why is that?
Its because the scale of Object and size of collider are proportional.
Size of collider will remain ‘1’ no matter how much you change the scale of object because value ‘1’ denotes the current scale.
For better understanding:
- Suppose you have an object with scale 1 unit. Its collider size will be 1 unit too. But if you increase the size of collider by 2. Collider Size will double the scale of Object i.e 2 units.
- Now Object’s Scale = 2 units. Initially Collider size will be 1 unit. But if you increase the collider size by 2. Collider Size will double the scale of Object i.e 2*2 =4 units.
I hope with this understanding you can achieve what you are trying.