Answers for "unity change toggle with script"

C#
0

unity change toggle with script

toggle.isOn = true
Posted by: Guest on September-19-2021
-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