Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.09 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.09 KB

License: MIT Unity Engine

Unity Toggle

Build Status

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