Answers for "how to use toggle in unity"

C#
-2

how to use toggle in unity

using.UnityEgnigne.UI;

public class ToggleScript : MonoBehaviour
{

public Toggle toggle;

void Update()
{
	if(toggle.isOn)
    {
    //Do stuff
    }
}
}
Posted by: Guest on January-21-2021

C# Answers by Framework

Browse Popular Code Answers by Language