Created
May 23, 2017 00:49
-
-
Save unity3dcollege/3f145d36510a0446572d7000b4b840db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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