Skip to content

Instantly share code, notes, and snippets.

@jawinn
Last active July 11, 2016 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jawinn/71ac609035b6443bdb829d8a6ba74582 to your computer and use it in GitHub Desktop.
Save jawinn/71ac609035b6443bdb829d8a6ba74582 to your computer and use it in GitHub Desktop.
Headers and Tooltips in Unity (C#)
[Header("Movement and Speeds")]
[Tooltip("Player speeds, etc")]
public Movement movement;
[Tooltip("Determines maximum jog over time until timeToMaxJog (1.0 is max on curve)")]
public AnimationCurve rampToFullJog = new AnimationCurve(new Keyframe(0,0.1f),new Keyframe(1,1));
[Tooltip("Time in seconds before maximum jog speed is reached")]
public float timeToMaxJog = 2.0f;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment