Search Issue Tracker
Fixed
Fixed in netcode-gameobjects-2.8.0
Votes
0
Found in [Package]
2.6.0
Issue ID
MTTB-1733
Regression
Yes
The given key 'EnemyAnimations' was not present in the dictionary
{}The given key 'EnemyAnimations' was not present in the dictionary{}_ after upgrading to netcode 2.6.0. happens when we try to send an rpc from SPAWNED network behaviour
Steps to reproduce:
The steps to reproduce: (v2.6 or v2.7)
- Create a generic project that includes
** NGO v2.6 or v2.6
* MP Tools (latest version is fine)
Create a scene.
* Add NetworkManager and disable scene management
Setup a player prefab
** In the player prefab make sure there is a NetworkBehaviour that invokes an RPC on another NetworkBehaviour on the player prefab (has to be 2 NetworkBehaviours)
** Make sure the RPC will be invoked immediately (i.e. SendTo.Owner will do this)
** Make sure the NetworkBehaviour that invokes the RPC is:
* Above the NetworkBehaviour that contains the RPC. (screenshot)
* The RPC is invoked during OnNetworkSpawn.
- Enter play mode
- Start as the host
Actual results:
An exception will be thrown when the RPC is invoked.
Expected results:
No exception should be thrown.
Reproducible with versions:
v2.6.0 & v2.7.0
Not reproducible with versions:
v.2.5.1 (and below)
Can’t test with versions:
Environment:
- OS: [Windows 11]
- Unity Version: [6000.2.9f2]
- Netcode Version: [2.6.0]
- Netcode Topology: [Client Server]
Notes:
A replication project has been added to this ticket and can be used to confirm the fix.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
Add comment