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 Heikki-Hiltunen · Jun 03, 2015 at 05:46 AM · animationscale

Changing object scale in script while animation is running

Is it anymore possible to change transform's scale if there's an active animator in the object?

I have a kind of a cloud consisting of circles. Every circle object has a script attached to randomly change their scale to make the cloud seem more lively. I also have animator on the cloud to change it's overall shape by moving the circles.

In Unity 4 this worked just fine. Animation took care of the placement of the circles and the script controlled their size. Now after upgrading to Unity 5 it stopped working. It seems that just having an animator makes it impossible to change objects' scales by script, even if there's no curves for the scales in the animation.

Can this kind of things be done in Unity 5 at all?

Comment
Add comment · Show 1
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 zeppike · Jun 04, 2015 at 05:38 PM 0
Share

I had some issues in unity 5 with scaling animated UI elements. Check if your scale is changing in the inspector, not in the game window. I had a problem with that, my scale values were moving, but It didn't show on the game window. $$anonymous$$y solution was to "touch" the animated parent transform in every frame, while the animation was playing. By touching I mean transform.position = transform.position; You don't have to use animator, I still use legacy animations.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by jdaliz · Feb 01, 2016 at 05:13 PM

Add the object you want to animate and rescale in a empty object. In the script you can rescale the parent object, and change the position. The scale and the position will be applied to the child.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Imported Scale Animation Ignored in Viewport 0 Answers

Will humanoid rigs ever support stretch? 0 Answers

Animator, animation and proportional scaling 1 Answer

Scaling Animation for a Instantiated Object 1 Answer

character & objects import in different scale & animation dosent work right anymor!!!! 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