/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.

Primary LanguageC#MIT LicenseMIT

Serialized-Tuples For Unity

Serialized Tuples allow you to create data objects with any type combinations you desire.

Declarations range from SerializedTuple to SeralizedTuple<T1,T2,T3,T4,T5,T6,T7,T8> 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.

alt text