UnityTechnologies / GalacticKittens

Get started making multiplayer games with Netcode for GameObjects
https://unity.com/products/netcode
Other
196 stars 56 forks source link

Spaceship shield not colliding with enemies or enemy bullets #7

Closed emgamedev-unity3d closed 1 year ago

emgamedev-unity3d commented 1 year ago

The shield GameObject in the PlayerSpaceship prefab hierarchy does not collide with enemy GOs.

This is due to the fact that as of NGO 1.0.1, all GOs with a NetworkBehavior cannot be spawned as disabled, they must be active.

From that fix: Fixed issue when attempting to spawn a parent GameObject, with NetworkObject component attached, that has one or more child GameObjects, that are inactive in the hierarchy, with NetworkBehaviour components it will no longer attempt to spawn the associated NetworkBehaviour(s) or invoke ownership changed notifications but will log a warning message. (https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/pull/2096)