Skip to content

Instantly share code, notes, and snippets.

@unity3dcollege
Created July 22, 2017 21:25
Show Gist options
  • Save unity3dcollege/a6371be8d41ebdac95c2895375f06811 to your computer and use it in GitHub Desktop.
Save unity3dcollege/a6371be8d41ebdac95c2895375f06811 to your computer and use it in GitHub Desktop.
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