feat: Added `GenerateSerializationForGenericParameterAttribute` and `GenerateSerializationForTypeAttribute` by ShadauxCat · Pull Request #2694 · Unity-Technologies/com.unity.netcode.gameobjects

@ShadauxCat

…teSerializationForTypeAttribute`

This enables users to control the generation of serialization code through codegen, making it easier to create their own network variable subtypes, and also making it possible for them to easily generate serialization for specific types they know they need to use. NetworkVariable and NetworkList have been changed to use these attributes so they are no longer special cases in our codegen.

This PR also exposes methods in `NetworkVariableSerialization<T>` to further support this type of serialization need.

resolves #2686

@ShadauxCat

NoelStephensUnity

NoelStephensUnity

@ShadauxCat

NoelStephensUnity

@NoelStephensUnity

@ShadauxCat

…on_attributes' into feat/user_serialization_generation_attributes

@ShadauxCat

@ShadauxCat

@ShadauxCat ShadauxCat deleted the feat/user_serialization_generation_attributes branch

October 2, 2023 21:07

NoelStephensUnity added a commit that referenced this pull request

Oct 5, 2023
…GenerateSerializationForTypeAttribute` (#2694)

This enables users to control the generation of serialization code through codegen, making it easier to create their own network variable subtypes, and also making it possible for them to easily generate serialization for specific types they know they need to use. NetworkVariable and NetworkList have been changed to use these attributes so they are no longer special cases in our codegen.

This PR also exposes methods in `NetworkVariableSerialization<T>` to further support this type of serialization need.

resolves #2686

---------

Co-authored-by: Noel Stephens <noel.stephens@unity3d.com>