Skip to content
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

Merged
merged 6 commits into from
Oct 4, 2023

Conversation

ShadauxCat
Copy link
Collaborator

Also fixes NetworkVariables with NonSerializedAttribute showing in editor when they should not.

fixes #2709

Changelog

  • Fixed: NetworkVariables of non-integer types will no longer break the inspector
  • Fixed: NetworkVariables with NonSerializedAttribute will not appear in the inspector

Testing and Documentation

  • No tests have been added.
  • No documentation changes or additions were necessary.

Also fixes NetworkVariables with NonSerializedAttribute showing in editor when they should not.
@ShadauxCat ShadauxCat requested a review from a team as a code owner September 25, 2023 21:21
@@ -496,6 +499,13 @@ private bool ImportReferences(ModuleDefinition moduleDefinition)
}
}


bool isEditor = assemblyDefines.Contains("UNITY_EDITOR");
Copy link
Collaborator

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.
🥇

Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a 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!

ShadauxCat and others added 3 commits September 29, 2023 14:12
# Conflicts:
#	com.unity.netcode.gameobjects/CHANGELOG.md
#	com.unity.netcode.gameobjects/Editor/CodeGen/NetworkBehaviourILPP.cs
@ShadauxCat ShadauxCat enabled auto-merge (squash) October 4, 2023 19:42
@ShadauxCat ShadauxCat merged commit a60288f into develop Oct 4, 2023
1 check passed
@ShadauxCat ShadauxCat deleted the fix/networkvariable_float_editor_errors branch October 4, 2023 20:36
NoelStephensUnity pushed a commit that referenced this pull request Oct 5, 2023
Also fixes NetworkVariables with NonSerializedAttribute showing in editor when they should not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.6.0 is causing editor to crash on float/double network variables unless marked internal.
2 participants