Skip to content

Instantly share code, notes, and snippets.

@unity3dcollege
Created May 23, 2017 03:04
Show Gist options
  • Save unity3dcollege/f71abe5b2f8bd45d25f1fdb3eca19d9d to your computer and use it in GitHub Desktop.
Save unity3dcollege/f71abe5b2f8bd45d25f1fdb3eca19d9d to your computer and use it in GitHub Desktop.
[Header("Context Menu Items")]
[ContextMenuItem("RandomValue", "RandomizeValueFromRightClick")]
[SerializeField]
private float randomValue;
private void RandomizeValueFromRightClick()
{
randomValue = Random.Range(-5f, 5f);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment