- Home /
The question is answered, right answer was accepted
missing assembly references on new project?
Hi, I get this error 24 times in a almost new unity project (in the editor):
Library/PackageCache/com.unity.serialization@1.2.0-preview/Runtime/Unity.Serialization/Binary/BinarySerialization.cs(238,29): error CS0234: The type or namespace name 'Unsafe' does not exist in the namespace 'System.Runtime.CompilerServices' (are you missing an assembly reference?)
I'm using unity 2020.1.1f1 (but had same problem on 2020.1.0f1) with HDRP and only changed some project settings and installed some packages (for example I set the scripting backend to IL2CPP and API compatibility level to .Net 4.x). I didn't manually install the package com.unity.serialization.
I don't get the error with a completely fresh project, but I need these settings and packages.
Thanks in advance, Felix
EDIT: fixed after removing the Unity NetCode Package...
Follow this Question
Related Questions
Problem with serialization since version 5.0 (Parent/Children relationship) 0 Answers
does this key not found error have to do with serialization? 2 Answers
[Solved]How to serialize Dictionary with Unity Serialization System 6 Answers
How can you put a serializable object in an editor window? 0 Answers
Custom Class Array Serialization Problem 0 Answers