Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Space

Defines your project as a collection of scenes. Serves as the main directory for uploaded assets and scripts.

Space methods allow you to

  • Navigate through Scenes
  • Create Space properties

See Scene

See Application

Index

Functions

finishPlayMode

  • finishPlayMode(): void
  • finishPlayMode(imageId: string): void
  • deprecated

    Use Application.quit instead.

    Returns void

  • deprecated

    Use Application.quit instead.

    Parameters

    • imageId: string

    Returns void

getProperty

  • getProperty(key: string): string
  • Gets a string property from this Space.

    Parameters

    • key: string

      name of property to find

    Returns string

    custom property. Returns null if no property is found.

goToNextScene

  • goToNextScene(): void
  • Sets active Scene to next index from current Scene.

    Returns void

goToPreviousScene

  • goToPreviousScene(): void
  • Sets active Scene to previous index from current Scene.

    Returns void

goToScene

  • goToScene(sceneIndex: number): void
  • Sets active scene to sceneIndex.

    Parameters

    • sceneIndex: number

    Returns void

log

  • log(s: string): void
  • deprecated

    Use Debug.log instead.

    Parameters

    • s: string

    Returns void

setProperty

  • setProperty(key: string, value: string): void
  • Sets a string property to this Space.

    Parameters

    • key: string

      property name.

    • value: string

      property value.

    Returns void

showSceneNavigation

  • showSceneNavigation(show: boolean): void

Generated using TypeDoc