Extend CreateSession class

Hey folks,

I’m currently working on a lobby functionality and wants to learn everything about multiplayer coding. For testing, I used the default components from the multiplayer packages (using UNITY6).

For creating a session there is a own class/component in this example and I want to add/edit somethings. The question is - how? What is the best practice way? I dont want to edit files directly in the “core” package.

Thanks for help! :slight_smile:

Hello
The widgets are there to quickly get you started prototyping. The logic for these cannot be modified.

To build your own custom logic around sessions, you can start with the session documentation here: Get started

1 Like

You can copy the code and put it in your own class to get started.

I tried it already but I don’t get the EnterSessionBase class :confused: Maybe because its a internal class?

It would be such a good starting point if it were possible to start with it :slight_smile:

Hi @Johnney1337 !
You are right, all those required classes are internal so it is difficult to extend it.
The possibility to customize Multiplayer Widgets has been requested a lot so we will be hopefully adding this to future releases in 2025/2026 and open up the API.

The workaround would be to copy the package code and manually change those internal classes to public. Just be aware that this makes it hard to integrate future package updates.

1 Like