Esempio n. 1
0
        public void HighLightAnim()
        {
            if (handle != null)
            {
                return;
            }
            var elementRoot = UIRoot.Q("", "shader-template_root");

#if UNITY_2019_3_OR_NEWER
            var orginColor = elementRoot.style.borderBottomColor.value;
#elif UNITY_2019_2_3
            var orginColor = elementRoot.style.borderColor.value;
#endif
            handle = EditorTween.Tween((f) =>
            {
#if UNITY_2019_3_OR_NEWER
                var color = UnityEngine.Color.Lerp(orginColor, UnityEngine.Color.red, f);
                elementRoot.style.borderBottomColor = color;
                elementRoot.style.borderLeftColor   = color;
                elementRoot.style.borderTopColor    = color;
                elementRoot.style.borderRightColor  = color;
#elif UNITY_2019_2_3
                elementRoot.style.borderColor = UnityEngine.Color.Lerp(orginColor, UnityEngine.Color.blue, f);
#endif
            }, 1, EditorTweenCurve.BuiltinCurve.pingpongInOut);
            handle.OnStop = () => handle = null;
        }
Esempio n. 2
0
 private static void ApplicationStart() => EditorTween.Add(new EditorTweenGraphic(), EditorGUI.ColorField, new GUIContent("Color"));
Esempio n. 3
0
 private static void ApplicationStart() => EditorTween.Add(new EditorTweenRotation(), EditorGUI.Vector3Field, GUIContent.none);
Esempio n. 4
0
 private static void ApplicationStart() => EditorTween.Add(new EditorTweenBase());