Search Results for

    Show / Hide Table of Contents

    Class HubManager

    This class manages the hub area of the game, including loading and unloading game scenes, controlling the hub camera, and managing game buttons.

    Inheritance
    object
    HubManager
    Namespace: Game
    Assembly: cs.temp.dll.dll
    Syntax
    public class HubManager : MonoBehaviour

    Fields

    gameButtonsParent

    The parent object containing all game buttons in the hub.

    Declaration
    public GameObject gameButtonsParent
    Field Value
    Type Description
    GameObject

    hubCamera

    The camera used in the hub area.

    Declaration
    public GameObject hubCamera
    Field Value
    Type Description
    GameObject

    Instance

    A single instance of this class that can be accessed from anywhere.

    Declaration
    public static HubManager Instance
    Field Value
    Type Description
    HubManager

    Methods

    LoadScene(string)

    Loads a new game scene and disables the hub camera.

    Declaration
    public void LoadScene(string sceneName)
    Parameters
    Type Name Description
    string sceneName

    The name of the scene to load.

    UnloadGameScene()

    Unloads the current game scene and reactivates the hub camera.

    Declaration
    public void UnloadGameScene()
    In This Article
    Back to top Example Unity documentation footer