Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sfcm22 · Sep 20, 2013 at 10:30 AM · touchdragscaling

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

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mattssonon · Sep 20, 2013 at 10:34 AM 0
Share

A ruler as in it has a ruler texture on it?

avatar image VIPINSIRWANI · Sep 20, 2013 at 11:07 AM 0
Share

do you want to increase the object size or anything else??

avatar image sfcm22 · Sep 20, 2013 at 11:13 AM 0
Share

Hmm yes but in the x axis alone like a measuring tape I want to increase in the right side alone VIPINSIRWANI please help me with this

avatar image robertbu · Sep 20, 2013 at 11:13 AM 0
Share

Note this appears to be an expansion of this question:

http://answers.unity3d.com/questions/540260/how-to-change-the-scaling-of-a-gameobject-during-r.html

In order for some to give an accurate answer for a question like this, you'd have to specify the UI and behaviors. A picture is often helpful. What specifies the start of the ruler? Does the ruler angle to match the mouse position or is it in a fixed orientation? Doe the ruler move and if so how is that related to the stretching, etc.

avatar image sfcm22 · Sep 20, 2013 at 11:14 AM 0
Share

I'm having a ruler texture also mattssonon but I want to increase the size of the scale in the rightside x axis alone please help me

Show more comments

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Ecoludologist · Sep 20, 2013 at 11:36 AM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by VIPINSIRWANI · Sep 20, 2013 at 03:15 PM

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to change the scaling of a gameobject during runtime? 2 Answers

Ragdoll 2D character controller help 0 Answers

Touch and Drag for Android problem 0 Answers

How to force Eventsystem Drag 1 Answer

EventSystem IDragHandler not working on iOS 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges