Author Topic: Suggestion: Animation curve tween inspector  (Read 3619 times)

beermoney

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 2
  • Posts: 80
    • View Profile
Suggestion: Animation curve tween inspector
« on: January 31, 2014, 08:57:49 AM »
It bugs me a little that the animation curve in the tween editor inspector has a fixed height of 20 pixels (or less?) and the width matches the editor so that could be 300 which gives it a very skewed aspect ratio and you can't actually make out the shape of the curve

I was playing with your widget Aren and I added some guilayout options to the EditorGUILayout.CurveField(..), see line ~30 of UITweenerEditor

  1. // change to..
  2. AnimationCurve curve = EditorGUILayout.CurveField("Animation Curve", tw.animationCurve, GUILayout.Height(50f), GUILayout.Width(175) );
  3.  

(editor layout seems quite flakey - if you specify a width less than 100 it becomes zero, guess its a bug in unity)

see attachment

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Suggestion: Animation curve tween inspector
« Reply #1 on: January 31, 2014, 10:30:18 AM »
That's a good idea, thanks!