Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

dissable "crossfade" on button animation?

Discussion in 'Animation' started by ackley14, Aug 2, 2015.

  1. ackley14

    ackley14

    Joined:
    Oct 31, 2014
    Posts:
    31
    So im working on a UI and i want to animate one of the buttons (the "settings" button) to rotate when the user hovers over the icon. my current issue is that when the user removes their mouse from the button , the icon plays the animation in reverse (cross fading back) to the idle animation. ultimately this isn't going to kill me but its something that i'd like to fix if at all possible D:
    i tried editing the "Highlighted" animation to add a transition to the idle ("normal") state making the transition time 0 but that didn't help either. any thoughts or suggestions?
     
  2. ackley14

    ackley14

    Joined:
    Oct 31, 2014
    Posts:
    31
    Solved it!:

    for anybody else with this problem, simply edit the transition from the "Any State" node to which ever node you wish. this is an example pipeline of a normal on mouse over: [Start] >>> [ANIMATION(Normal)]>>>(Any State)>>>[ANIMATION(Highlighted)]>>>(Any State)>>>[ANIMATION(Normal)](loop till any state is called again)
     
  3. ackley14

    ackley14

    Joined:
    Oct 31, 2014
    Posts:
    31
    Solved it, had to edit the transition from "any state" to the node i wanted.