Syncing MonoBehaviour Scripts to Netcode for Entities (Unity 6 Multiplayer)

Im doing a multiplayer 16 player battle royale project in Unity 6, using its Multiplayer Center. After setting up the demo package of Netcode For Entities, I had a monobehaviour Character Controller asset I wanted to integrate. Thing is, the scripts are not synced or networked at all with the netcode structure of the example provided by Unity 6, which for example has a networked cube. How can I implement my new asset in my multiplayer game so it works for each client of the server? Any help is appreciated :slight_smile:

Hiya, which character controller asset?

Many do not support multiplayer nor are they DOTS based (as you point out), and might not even be easily extensible to supporting the needs of networking. Ultimately asking the specific asset publisher for guidance will likely get you much further, most have support processes you can pursue.

Consider first reviewing our character controller that does work with netcode for entities to see if that covers your needs:

Hey, thanks for the help!

I have 2 Character Controllers (Character Controller Pro) and (Free: Kinematic Character Controller) and I haven’t found a solution to either, but maybe it is because I don’t quite know how to integrate the movement etc for the previous monoBehaviour to link with Ghost Components etc.

Ill check out your provided information right now, though

Thanks for the specific asset references. I’m unfamiliar with Character Controller Pro, so recommend asking the publisher if they have recommendations on networking integrations. If I recall correctly KCC should have a section in its documentation on how to integrate with network loops, but isn’t specific to any particular netcode solution. Nor helps with reconciling Monobehaviors and ECS.

I’ll note that if you compare the author of KCC on the asset store to the forum post I referenced about our character controller… you’ll realize you’re in good hands taking a closer look at the ECS solution and could possibly compare the recommended steps across these assets to move yourself forward. Feel free to ask any more specific questions as you prototype further.

Ah, thanks for the clarification. Also, does the OnlineFPS samples etc work with Netcode for Entities as well as for GO’s or are the tutorials specified?

Also, the OnlineFPS, Basic and all samples just leave me with a lot of reference errors together with duplicates. When I only import Basic its missing references and when I Import multiple samples it cant compile into a working example either.