Remove need to copy custom serializers to every assembly #594
Closed
mbstudio2004
started this conversation in
Feature Request
Replies: 2 comments 3 replies
-
Not possible as this is a Unity limitation. |
Beta Was this translation helpful? Give feedback.
3 replies
-
@ooonush We found a way and this was actually added recently-ish as a feature.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So im a big fan of assembly definitions and i organize my project in multiple assemblies, but as those assemblies sometimes rely on each other, for example one assembly is interaction system other assembly is player, and when doing server side interaction i need to send which player did it, so i write a custom network serializer.
Problem relies in fact that i need to write all of serializers in every assembly that will use , so in interaction assembly i need to write custom serializer for player, and in player for player. Its cluttery, but for now it works
I have a potential temporary solution, so, that you have one sepparate assembly where its sole purpose is to put serializers there if you use custom serializers, or idk, maybe a folder in project that is in main assembly so it can reference any custom and only putting there serializers.
Maybe settings for code generation, because some people dont use assemblies, so it works as now
maybe option just to take serializers from a folder, or from one asssembly
to be able to choose. Until a better solution comes.
Beta Was this translation helpful? Give feedback.
All reactions