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. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Feedback about shader graph add node animation

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

  1. laurentlavigne


    Aug 16, 2012
    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;
    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. }