On the Ugui of Unity-button animation

Source: Internet
Author: User

Try it today. Unity's new UI system-ugui, feeling very powerful, a lot of features at a glance, the use of very convenient next is to try to use his animation bar

Create a Ugui button first, or you can create a canvas and then create a button on the canvas

Then click the button,

After the option point of transition in the figure is opened, there is an option to animation

Click to select Auto Generate Animation

After the folder will pop-up option, it will mean the new animation to save the path, you choose the path name, but in the assets folder

Then under window, you can choose animation,

And then there's the animation conversation window we're familiar with.

And adding a component to the button is animator

Then click the Red button on the Animation dialog window above to edit it.

Then click on highlighted, the drop-down menu appears, that is, each button has so many states, you can set the animation for him separately,

, the button animation is selected after the right can edit the animation, what Scale,rotaton, can be edited

Then in the project panel there will be a directory, that is, the animation saved the directory, there will be an animation, drag it into the button of the animator component controller inside

So that you can use the animation, the other buttons can also use the animation, first, the button's transition option is selected as an animation, and then after the addition of the animator component, drag the animation just to the corresponding location.

On the Ugui of Unity-button animation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.