Created
July 22, 2017 21:25
-
-
Save unity3dcollege/a6371be8d41ebdac95c2895375f06811 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
using UnityEngine; | |
using UnityEngine.UI; | |
public class BrushSizeSlider : MonoBehaviour | |
{ | |
private Slider slider; | |
public static int BrushSize { get; private set; } | |
private void Start() | |
{ | |
slider = GetComponent<Slider>(); | |
} | |
private void Update() | |
{ | |
BrushSize = (int)slider.value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment