https://github.com/xjine/unity_activestatemanager
Manage objects active state.
https://github.com/xjine/unity_activestatemanager
assets unity
Last synced: about 2 months ago
JSON representation
Manage objects active state.
- Host: GitHub
- URL: https://github.com/xjine/unity_activestatemanager
- Owner: XJINE
- License: bsd-3-clause
- Created: 2019-09-09T03:40:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-09T04:39:30.000Z (almost 7 years ago)
- Last Synced: 2025-04-03T09:12:59.800Z (about 1 year ago)
- Topics: assets, unity
- Language: C#
- Homepage:
- Size: 273 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity_ActiveStateManager

Manage objects active state.
## Import to Your Project
You can import this asset from UnityPackage.
- [ActiveStateManager.unitypackage](https://github.com/XJINE/Unity_ActiveStateManager/blob/master/ActiveStateManager.unitypackage)
### Dependencies
You have to import following assets to use this asset.
- [Unity_SingletonMonoBehaviour](https://github.com/XJINE/Unity_SingletonMonoBehaviour)
## How to Use

1. Add ``ActiveStateManagerTarget`` into objects.
2. Add some ``key`` if you need.
3. Call some function from ``ActiveStateManager``.
```
ActiveStateManager.Instance.ActivateObjects();
ActiveStateManager.Instance.InactivateObjects();
```
If you add some keys in ActiveStateManagerTarget, you could control the objects with the key.
```
ActiveStateManager.Instance.ActivateObjects("Round");
ActiveStateManager.Instance.InactivateObjects("Round");
```
In this case, ``"Round"`` is key.