Unity-Technologies / com.unity.netcode.gameobjects

Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
MIT License
2.15k stars 435 forks source link

fix(editor): NetworkPrefabProcessor not marking prefab list dirty #3102

Closed mbaker3 closed 1 month ago

mbaker3 commented 1 month ago

NetworkPrefabProcessor now marks the default NetworkPrefabsList ScriptableObject asset as dirty if there are new imports OR deletions.

The Unity Editor is now aware of the changes and able to write them to disk. This prevents the changes from being lost when the editor is quit and allows them to be tracked in version control.

Previously the script would only mark the list as dirty if there had been both new imports and deletions.

Changelog

Testing and Documentation

unity-cla-assistant commented 1 month ago

CLA assistant check
All committers have signed the CLA.

NoelStephensUnity commented 1 month ago

Thank you for contributing! Good catch!