Created
December 14, 2018 08:56
-
-
Save Tak/33a7ad0b76e2c397c6d3ab33d9c4a3a7 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
class MyEditor | |
{ | |
int sliderValue = 0; | |
int sliderMin = 0; | |
int sliderMax = 15; | |
void OnInspectorGUI() | |
{ | |
sliderValue = EditorGUILayout.IntSlider(sliderValue, sliderMin, sliderMax); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment