-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Errors with NetworkVariable<float> and others in inspector #2714
Conversation
Also fixes NetworkVariables with NonSerializedAttribute showing in editor when they should not.
@@ -496,6 +499,13 @@ private bool ImportReferences(ModuleDefinition moduleDefinition) | |||
} | |||
} | |||
|
|||
|
|||
bool isEditor = assemblyDefines.Contains("UNITY_EDITOR"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahh... I was wondering when you were going to use the assenblyDefines...and then it all made sense how you are fixing the exception and the visibility issue together.
🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3...2...1... 🚀
LGTM!
# Conflicts: # com.unity.netcode.gameobjects/CHANGELOG.md # com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs
Also fixes NetworkVariables with NonSerializedAttribute showing in editor when they should not.
Also fixes NetworkVariables with NonSerializedAttribute showing in editor when they should not.
fixes #2709
Changelog
Testing and Documentation