Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcs090218/unity_toggle
A little bit overkill toggle button UI for Unity Engine
https://github.com/jcs090218/unity_toggle
ios toggle ui unity unity-script unity-toggle user-interface
Last synced: 3 months ago
JSON representation
A little bit overkill toggle button UI for Unity Engine
- Host: GitHub
- URL: https://github.com/jcs090218/unity_toggle
- Owner: jcs090218
- License: mit
- Created: 2018-08-21T19:44:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-23T07:55:10.000Z (12 months ago)
- Last Synced: 2024-10-10T10:24:25.516Z (3 months ago)
- Topics: ios, toggle, ui, unity, unity-script, unity-toggle, user-interface
- Language: C#
- Homepage:
- Size: 251 KB
- Stars: 38
- Watchers: 6
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![Unity Engine](https://img.shields.io/badge/unity-2018.3+-black.svg?style=flat&logo=unity)](https://unity3d.com/get-unity/download/archive)# Unity Toggle
[![Build Status](https://travis-ci.com/jcs090218/Unity_Toggle.svg?branch=master)](https://travis-ci.com/jcs090218/Unity_Toggle)
A little bit overkill iOS style toggle button.
## 🔨 Usage
```cs
JCS_Toggle togBtn = this.GetComponent();// Check if the toggle is on or off?
bool isOn = togBtn.IsOn;// Toggle the button.
togBtn.Toggle();// Set interactable.
togBtn.Interactable = !togBtn.Interactable;
```## 📌 Dependencies
* [JCSUnity](https://github.com/jcs090218/JCSUnity) by [Jen-Chieh Shen](https://github.com/jcs090218)
* [Tweener](https://github.com/PeterVuorela/Tweener) by [Peter Vuorela](https://github.com/PeterVuorela)## 🔗 Related Tool
* [Unity-Toggle-controller](https://github.com/Kalxoznik/Unity-Toggle-controller) by [Max Shakurov](https://github.com/Kalxoznik)