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: prefab processor dirty up port (up port) #3103

Closed NoelStephensUnity closed 1 month ago

NoelStephensUnity commented 1 month ago

This is an up-port of #3102

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