Cannot resolve symbol 'LobbyEventCallbacks'

I took a Sample from Unity and threw it into my game and for some reason does not find this method, although everything works fine in the original because of what can this be?

Original:

I also noticed that I can’t find this variable in this file

Because lobby events are in beta, you need to add the necessary scripting define symbols: GitHub - Unity-Technologies/com.unity.services.samples.game-lobby: A sample showcasing a minimal implementation of a lobby experience using the Lobby and Relay packages.

I didn’t understand what you were talking about, I was pumping the lobby from here, I noticed that these methods are not used in the 1.0.3 version, what is their analogue?

Hi darknside
The Game Lobby Sample showcases a Beta feature in the Lobby service called the Lobby events, the readme of the sample explains how to use this feature

When using the Events code in this sample, make sure your Editor *Project Settings > Player > Scripting Define Symbols* include: UGS_BETA_LOBBY_EVENTS and UGS_LOBBY_EVENTS

We are working on making this feature available without the need to define those Symbols, if you try out Lobby package version 1.1.0-pre.3 you should be able to use the code with defining the symbols… can you let me know if you are still having problems with either of those solutions? and would be interesting to know which editor version and Lobby package version you are using.

Thanks

1 Like

Hello.

I’m using 1.0.3 which goes right into the package manager

8916794--1221338--upload_2023-3-31_3-23-39.png

This is the message I keep getting when I press the Play button

8916794--1221341--upload_2023-3-31_3-24-32.png

I didn’t figure out your demo how you create a lobby, when I create a lobby in my game I get an error

8916794--1221344--upload_2023-3-31_3-25-48.png8916794--1221347--upload_2023-3-31_3-26-56.png

Please help me figure it out

UP

Lobby Beta Events depends on the Wire package. You’ll need to add this package to your project.

Add this line to your project at packages/manifest.json:
"com.unity.services.wire": "1.1.1",