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 Kaze_Senshi · Feb 17, 2015 at 10:19 PM · uimecanimanimationclipanimationcurve

How am I supposed to use Mecanim system to animate the new UI from version 4.6?

Hello guys, while I was looking for how to create a transition between different screens using the new UI system I found the following tutorial:

http://docs.unity3d.com/Manual/HOWTO-UIScreenTransition.html

There it present the transition by using Mecanim and animation clips to control the Canvas parameters. While it looks pretty interesting to have access to a lot of variables with those animation curves (spinning fadeout yay), the tutorial is really poor. It lacks explanations and contains a lot of broken links. It goes through some points where it could give more details and I am with problems with the Mecanim part.

Basically I did the following steps:

  1. Create a common canvas with a simple text

  2. Open the Animation Tab

  3. Select the canvas in the scene's hierarchy, then go to the animation tab and click on "Add Curve"

  4. Save a new .anim object to represent the canvas Opened

  5. Insert the same parameters for anchors as showed in that weird tutorial on the keyframe 0 in the animation tab

  6. Repeat steps 2-5 but with parameters of a closed canvas in a different .anim file

  7. Insert an Animator ( where I'll insert the .controller file from step 8) on the canvas object

  8. Create a .controller with the states "Opened" and "Closed"

  9. state "Opened" receives the .anim with the opened parameters

  10. state "Closed" receives the .anim with the closed parameters

  11. Create a transition between those states

Then I press to preview the transition and nothing happens. Also sometimes when I try to manipulate the variables in the Animation tab it seems to glitch the values, some times it shows "0" from all variables defined there and other times it shows the values that I defined before.

So how should I create that animation system described in that tutorial? The words "Animation" and "UI" (thanks Unity3D team) are too generic so I couldn't find any tutorial about it. If you know some tutorial about it please let me know? If you are part from the Unity3D staff please remake that tutorial page.

Thanks for the attention guys.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Kaze_Senshi · Feb 19, 2015 at 01:40 PM

I solved the problem here. If you try to apply the animation to the Canvas using the Screen Space Overlay it will ignore the animation because the Canvas component controls its absolute position. Because of that also the Animator Curve variable gets an undefined behavior because it is trying to change the parameter while the Canvas parameter is doing the same thing.

So you need to apply the animation to a child-panel from the Canvas and everything will work fine, check the following site for more details.

http://www.thegamecontriver.com/2014/09/create-animated-menu-unity-46.html

Also there is a Unity3D bug in the versions older than the 4.6.2p2 where the Button's OnClick handler will send the parameter as a null object instead of the parameter that you set in Unity3D's object inspector.

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

21 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

Related Questions

Editing mecanim animation from script 0 Answers

Problem using mecanim and the Animation process 0 Answers

Animating an Animation Parameter with Mecanim 0 Answers

Syncronize animation and game logic in turn-based strategy 1 Answer

Scrolling Scroll Rect with Buttons 4 Answers


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