https://github.com/hokageminato/serializedtuplesforunity
Serialized Tuples allow you to create data objects with any type combinations you desire. It also allowes you to decorate each tuple with customized name for accessibility in inspector.
https://github.com/hokageminato/serializedtuplesforunity
plugin tuples unity3d
Last synced: 8 months ago
JSON representation
Serialized Tuples allow you to create data objects with any type combinations you desire. It also allowes you to decorate each tuple with customized name for accessibility in inspector.
- Host: GitHub
- URL: https://github.com/hokageminato/serializedtuplesforunity
- Owner: HokageMinato
- License: mit
- Created: 2023-07-08T14:34:12.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-08T16:56:40.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T04:41:24.419Z (about 1 year ago)
- Topics: plugin, tuples, unity3d
- Language: C#
- Homepage:
- Size: 29.3 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serialized-Tuples For Unity
Serialized Tuples allow you to create data objects with any type combinations you desire.
Declarations range from **SerializedTuple** to **SeralizedTuple** allowing various combinations of data.
Use **[SerializedTupleLabels("Your Custom Field Name")]** to decorate each tuple values with appropriate names for inspector accessibility.
There are many usecases where one can use it to cross data accross assemblies, (Provided there is a common reference to this one ofc).
or use it to pass data to nonMono systems where there is a need to link data(parameters) in inspector with systems/classes which are POCC but non serialized.
Values can be access either by tuple.v1/v2/v.n or by invoking _T GetValue(string propertyName)_ or using _T GetValue(int idx)_
Value holder with no labels dont get displayed in inspector,but are useful as data holders and are accessible via value(.v1/v2/v(n)) property.
