How can I make a gameobject to scale in a single direction?

Hello

Actually I’m having a ruler all I want to do is to increase the ruler size after 10cms in that direction only by touching and dragging it after 10cm. Is it possible?
Please suggest me some ideas

Thank you

Hi,
If I understand your question, you just need to:

  1. Select your object in the scene.
  2. Click the scale button in the toolbar (the one that looks like a square with four arrows coming out of it).
  3. Click and drag one of the arms (red for x-scale, green for y-scale, blue for z-scale) of the gizmo on the object in the scene view.

you can scale size via coding also
like transform.localscale = new Vector3(1,1,1);
I am not sure but i think this may be help you.