Search Results for

    Show / Hide Table of Contents

    Class AxisSceneSwitcher

    AxisSceneSwitcher is a class designed to handle scene transitions within a game. It provides functionalities to load different scenes based on specific triggers or conditions, making it easy to switch between various game levels or menus.

    Inheritance
    object
    AxisMonoBehaviour
    AxisGameObject
    AxisSceneSwitcher
    Inherited Members
    AxisMonoBehaviour.ContainsLabel(string)
    AxisMonoBehaviour.CountChildrenWithLabel(string, bool)
    AxisMonoBehaviour.ContainsLabelInChildren(string, bool)
    AxisMonoBehaviour.GetSpaceBetweenColliders(AxisMonoBehaviour)
    AxisMonoBehaviour.GetSpaceBetweenCollidersHorizontally(AxisMonoBehaviour)
    AxisMonoBehaviour.PauseGame()
    AxisMonoBehaviour.SetActiveByName(string)
    AxisMonoBehaviour.ResumeGame()
    AxisMonoBehaviour.GameTimeScaleSet(float)
    AxisMonoBehaviour.transform
    AxisMonoBehaviour.gameObject
    AxisMonoBehaviour.collider
    AxisMonoBehaviour.Origin
    AxisMonoBehaviour.OnTransformChildrenChanged()
    Namespace: Axis.Logic
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class AxisSceneSwitcher : AxisGameObject

    Fields

    AsyncLoadScene

    Declaration
    public bool AsyncLoadScene
    Field Value
    Type Description
    bool

    LoaderCanvasPrefab

    Declaration
    public Canvas LoaderCanvasPrefab
    Field Value
    Type Description
    Canvas

    Methods

    ExitScene()

    Force transition to the first scene in build scenes, commonly main menu

    Declaration
    public void ExitScene()

    Loading(string)

    Executes the process of seamlessly loading another scene, and unloading current

    Declaration
    public IEnumerator Loading(string scene)
    Parameters
    Type Name Description
    string scene

    Scene name to load

    Returns
    Type Description
    System.Collections.IEnumerator

    OpenScene(string)

    Starts loading another scene associated with specific name

    Declaration
    public void OpenScene(string scene)
    Parameters
    Type Name Description
    string scene

    Scene name to load

    ReopenCurrentScene()

    Force reloading current scene

    Declaration
    public void ReopenCurrentScene()
    In This Article
    Back to top Axis 1.0.0