Created
May 22, 2018 20:34
-
-
Save codehoose/4bbf40464918269c11e77ad6019be386 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Example class demonstrating how you can use the slider as a menu. | |
| Add SliderMenu to the same game object as the Slider. Add an event handler (use dynamic) to the onIndexSelected property. | |
This file contains hidden or 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 WriteToConsole : MonoBehaviour | |
| { | |
| public void WriteValueToConsole(int index) | |
| { | |
| print(index); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment