https://github.com/hokageminato/scriptable-enum-for-unity
A Scriptable Object based id drawer which mimics enum behaviour prodiving flexibility for extending enum values without code recompilation.
https://github.com/hokageminato/scriptable-enum-for-unity
enums scriptableobjects unity unity3d
Last synced: 9 months ago
JSON representation
A Scriptable Object based id drawer which mimics enum behaviour prodiving flexibility for extending enum values without code recompilation.
- Host: GitHub
- URL: https://github.com/hokageminato/scriptable-enum-for-unity
- Owner: HokageMinato
- License: mit
- Created: 2023-07-09T08:28:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T14:47:41.000Z (over 1 year ago)
- Last Synced: 2025-01-27T10:44:57.207Z (11 months ago)
- Topics: enums, scriptableobjects, unity, unity3d
- Language: C#
- Homepage:
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scriptable-Enum-For-Unity
A Scriptable Object based id drawer which mimics enum behaviour prodiving flexibility for extending enum values without code recompilation.
Features:
- Declare like normal enum, The values will be drawn by the values set in scriptable object.
- No need for **code recompilation** or **loss of serialization** due to changes in enum values.
- Drawer based workflow for easy assignment of values.
- **ScriptableEnumsContainer** for access to all possible enumerations.
- Cached HashCode generated based on **values** instead of actual object reference for optimum performance during HashSet and DictionaryLookups.
- Also implements EquailtyComparers based on values instead of reference for easy comparision accross instances.
Limitations:
- ScriptableObjectContainer required for iterating all the enumeration values.
- CentralIdContainer requied for iterating all ScriptableObjectContainer values.
Screenshot:
