feat: Added `GenerateSerializationForGenericParameterAttribute` and `GenerateSerializationForTypeAttribute` by ShadauxCat · Pull Request #2694 · Unity-Technologies/com.unity.netcode.gameobjects
…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
deleted the
feat/user_serialization_generation_attributes
branch
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters