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 SUPPEAR · Feb 16, 2015 at 01:13 AM · android2dgameobjectobjectmobile

Scaling Script?

Hello. I am trying to figure out how to make a script that I can attach to a folder ( An empty game object ) which contains all the objects. The script I am trying to make is to expand all the game objects by scaling both the X axis and Y axis if a certain game object is pressed. I can't seem to find any posts that relate. All help is appreciated. Also, this is not the first thing I've done, I've tried scripts but like I said they don't do exactly what is needed.

Comment
Add comment · Show 2
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 meat5000 ♦ · Feb 16, 2015 at 01:50 AM 0
Share

$$anonymous$$ake it work on one gameObject first.

Changing transform scale is basics.

avatar image pako · Feb 16, 2015 at 09:15 AM 0
Share

Just so we speak the same language: Although the root GameObject may seem like a folder, its just a GameObject, and the "objects" it contains are "children" GameObjects. All these GameObjects have Transforms.

So, what you want is to iterate through the hierarchy of Transform children. The way to do this is, is shown in the Scripting Reference and has been answered many times in this forum:

http://docs.unity3d.com/ScriptReference/Transform.html

http://answers.unity3d.com/questions/10417/how-can-i-access-the-children-of-a-transform.html

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by GraviterX · Feb 16, 2015 at 01:46 AM

If you mean scaling like climbing, the FPS Input Controller that is included in the standard assets has a character script that allows you to edit how steep the surface has to be for the Player to scale it.

Comment
Add comment · Show 3 · 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 meat5000 ♦ · Feb 16, 2015 at 01:51 AM 0
Share

I think he means actually changing scale of the objects.

avatar image SUPPEAR · Feb 16, 2015 at 01:59 AM 0
Share

Sorry for confusion. When I say scaling, I mean as in making the object become bigger by increasing the size on the X axis and Y axis per second at a small amount. Basically imagine a circle beco$$anonymous$$g bigger.

avatar image GraviterX · Feb 16, 2015 at 03:21 AM 0
Share

O$$anonymous$$, I personally would make this an animation. Have a $$anonymous$$ey code.Yourkey statement to activate an animation.

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

22 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 avatar image avatar image avatar image avatar image

Related Questions

Expand object on touch? 1 Answer

Transform.LocalScale Script Problem. Please help. 2 Answers

Expand Object On Touch? Someone please help me 1 Answer

Collision On Specific Object= Destroy not working. 2 Answers

Collision On Object Error. Please help. 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