Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Feedback about shader graph add node animation

Discussion in '2020.1 Beta' started by laurentlavigne, Nov 8, 2019.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,440
    so I am exploring the node menu and I almost threw up all over my keyboard when I saw the android like transition animation.
    Protip: unity is not a mobile phone app so remove that abomination.
    If you really feel the urge to impose mobile phone tropes to a desktop software, have the courtesy of making transitions turn off to this script.

    Code (CSharp):
    1. using UnityEditor;
    2. using UnityEditorInternal;
    3. using UnityEngine;
    4.  
    5. static class TreeViewToggleAnimation
    6. {
    7.     [MenuItem("TreeViewUtility/Toggle Animation")]
    8.     static void ToggleAnimation()
    9.     {
    10.         const string prefKey = "TreeViewExpansionAnimation";
    11.         bool newValue = !EditorPrefs.GetBool(prefKey, true);
    12.         EditorPrefs.SetBool(prefKey, newValue);
    13.         EditorUtility.RequestScriptReload();
    14.         Debug.Log("TreeView animation is now " + (newValue ? "enabled" : "disabled"));
    15.     }
    16. }
    17.