Unity_Toggle

A little bit overkill toggle button UI for Unity Engine

MIT License

Stars
38
Committers
1

Unity Toggle

A little bit overkill iOS style toggle button.

🔨 Usage

JCS_Toggle togBtn = this.GetComponent<JCS_Toggle>();

// Check if the toggle is on or off?
bool isOn = togBtn.IsOn;

// Toggle the button.
togBtn.Toggle();

// Set interactable.
togBtn.Interactable = !togBtn.Interactable;

📌 Dependencies

🔗 Related Tool