Odin Serialization support #883
alfa995-dev
started this conversation in
Feature Request
Replies: 2 comments 1 reply
-
I believe odin puts in an #ODIN_SERIALIZER define. Please see if this works... Do a search for the following... it will be in multiple scripts: public abstract partial class NetworkBehaviour : MonoBehaviour Replace with the following... #if ODIN_SERIALIZER
public abstract partial class NetworkBehaviour : SerializedMonoBehaviour
#else
public abstract partial class NetworkBehaviour : MonoBehaviour |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ah, yeah because of codegen. Well darn I'm sorry.
I'm certain we can get this into V5 though. Please visit our Discord here
channel here and make the suggestion with detail so it does not become
forgotten! I think we might be getting rid of git discussions.
https://discord.com/channels/424284635074134018/1370394055443353752
…On Thu, May 8, 2025 at 11:48 PM alfa995-dev ***@***.***> wrote:
Thank you for your reply! I didn't see an #ODIN_SERIALIZER define after I
installed it but even with #ODIN_INSPECTOR it didn't quite work, it throws
a lot of errors on NetworkBehaviourHelper, GeneralHelper,
PredictionProcessor and NetworkBehaviourProcessor all saying
*"The type 'SerializedMonoBehaviour is defined in an assembly that is not
referenced.' you must add a reference to assembly 'Sirenix.Serialization' "*
But I'm not entirely sure how to do that.
—
Reply to this email directly, view it on GitHub
<#883 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGPJC3WQB3I4FXDQJUOU66L25QQQHAVCNFSM6AAAAAB24NKD5KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMBYGM2DANA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
Odin Inspector automatically serializes things like dictionaries in the Unity Editor which is quite convenient, but it needs your scripts to inherit from SerializedMonoBehaviour to do so, which means it's currently not possible if you need to inherit from NetworkBehaviour too.
Hope there's some way to implement it. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions