Installing Multiplayer Play Mode - DebugUtils does not contain a definition for Trace

Hello guys!
I have been trying to install MPM for multiple versions of Unity starting from the late 2022 LTS then Unity 6 LTS. I have never succeeded :D, it always fails during the package install because of this error

'DebugUtils' does not contain a definition for 'Trace'

The error is replicated over multiples files all related to MPM.
I’ve been trying to see if one of my packages is using theses names but couldn’t find any.
I also cleared the Package Cache and Library folder just in case, no result.
Do you have any idea what is the issue here ?

Current Unity version : 6000.0.23f1


1 Like

Replacing in the code DebugUtils.Trace by Debug.log fixed my issue.
Clearly not what I’m supposed to do but it worked for now

I am also seeing this error after upgrading my project to Unity 6. I have a clean project however that is not showing this error.

1 Like

I found the issue was solved for me by removing the AssetStoreTools folder from my Assets folder.

1 Like

Still seems to be an issue. I haven’t been able to figure this one out.

I migrated my project from HDRP to URP and redone everything in the process.
The issue disappeared

1 Like

Okay, found the reason. I ran grep -rnw '.' -e 'DebugUtils' in the project directory to find if there are any references to DebugUtils other than from multiplayer play.

There indeed was - Volumetric Lines included the class in its .dll. Kind of weird that this issue appeared sort of suddenly after doing an Unity version upgrade. Volumetric Lines asset had been installed for a long time and before the version upgrade, Multiplayer Play Mode worked too.

Anyway.. I removed the Volumetric Lines asset and the problem is now fixed for me.

This actually solved it for me, thanks so much!
I also tried to solve it by removing all ackages from the cache folders in AppData. Did not help in my case.