Skip to content

Instantly share code, notes, and snippets.

@unity3dcollege
Created May 23, 2017 00:49
Show Gist options
  • Save unity3dcollege/3f145d36510a0446572d7000b4b840db to your computer and use it in GitHub Desktop.
Save unity3dcollege/3f145d36510a0446572d7000b4b840db to your computer and use it in GitHub Desktop.
using UnityEngine;
public class RangedExample : MonoBehaviour
{
[Header("Numeric Attributes")]
[Tooltip("A float using the Range attribute")]
[Range(-5f, 5f)]
[SerializeField]
private float rangedFloat;
[Space]
[Tooltip("An integer using the Range attribute")]
[Range(-5, 5)]
[SerializeField]
private int rangedInt;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment