Good day everyone!
I am trying to setup Unity Netcode according to this tutorial.
After installation, I keep getting these three errors:
Unity console with three errors: Library/PackageCache/[email protected]/Runtime/Core/NetworkObject.cs(84,34): error CS0103: The name ‘FindObjectsByType’ does not exist in the current context
, Library/PackageCache/[email protected]/Runtime/Core/NetworkObject.cs(84,67): error CS0103: The name ‘FindObjectsInactive’ does not exist in the current context
, Library/PackageCache/[email protected]/Runtime/Core/NetworkObject.cs(84,96): error CS0103: The name ‘FindObjectsSortMode’ does not exist in the current context
I am using Unity 2021.3.15f1 and IL2CPP scripting backend. I am also using Niantic Lightship framework if it matters.
I did try manually alternate the code by paraphrasing the FindObjectsByType into FindObjectsOfType, but Unity won’t allow me to do that. Also I have checked my framework, and, according to tutorial, it is the right one.
How can I fix that?