NetCode 0.0.4 Tutorial Bugs(?)

Following the “Getting Started” tutorial at Getting started with NetCode | Unity NetCode | 0.0.4-preview.0, I ran into some missing classes:

Assets/Scripts/CubeInput.cs(54,35): error CS0246: The type or namespace name 'Enable**NetCube**GhostReceiveSystemComponent' could not be found (are you missing a using directive or an assembly reference?)

Assets/Scripts/CubeInput.cs(145,27): error CS0103: The name '**NetCube**GhostSerializerCollection' does not exist in the current context

I noticed, however, that **Sample**GhostSerializerCollection and Enable**Sample**GhostReceiveSystemComponent exist in the generated code (where my project name is “Sample”). By the same logic, I assume the sample project is named “NetCube”. Am I correct to substitute “NetCube” for my project title?

I dug through other threads about this tutorial but didn’t find related material e.g., NetCode Code Generation Issue/Question - Unity Engine - Unity Discussions

2 Likes

Don’t forget the NetCube Name Prefix in the hook up the collections step.

5 Likes

Ack of course. I missed the obvious “name prefix” field for the collection component. Thank you!

My pleasure! It’s not that obvious, it’s far too small, and it should be in the text.

Feedback for the NetCode Getting Started: Make the Name Prefix step explicit in text and not just in a tiny image :slight_smile:

4 Likes

Ah. Thank you so much!!!

1 Like

I’m curious I don’t have the extra fields in the picture for the component and I can’t enter the Prefix as you describe. What do you suggest?

This was only needed pre-0.3 (or 0.2). What’s the issue you are having?

Oh thanks, yeah basically I have this issue:
Assets/Scripts/CubeInput.cs(54,35): error CS0246: The type or namespace name ‘EnableNetCubeGhostReceiveSystemComponent’ could not be found (are you missing a using directive or an assembly reference?)
Which is what brought me to your answer for the other guy.
If you are able to help me I would really appreciate it.
Kind Regards.

Which version are you using? And can you use the latest version? The NetCode Getting Started is partially out of date.

1 Like

ah okay I’ll do that and see, thanks for your suggestion mate really appreciate it.

Oh the version is 2020.1.x

Let me try again, I deleted it yesterday and started again today I think I worked out how to install the packages better today, I may have missed something before.

Unless you can suggest some other tutorial to setup my multiplayer networking test project.

1 Like

Sure, there are the multiplayer samples, which appear to have been updated for NetCode 0.3.0: https://github.com/Unity-Technologies/multiplayer/

2 Likes

Thanks mate I’ll check those out, appreciate it.

1 Like