Instantiate prefab in lobby, is possible ?

Options
I need instantiate a prefab in lobby, this prefab is required in lobby to show available rooms

Comments

  • [Deleted User]
    Options
    Hi @FabioXD113,

    while inside the lobby you can only instantiate local objects using Unity's Instantiate(...) function. Networked objects are only allowed while inside a room. To instantiate a local object, you can use OnJoinedLobby callback, e.g.:
    public void OnJoinedLobby()
    {
        Instantiate(prefab);
    }