Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / UnityContext / scenes

UnityContext.scenes

field

UnityContext.scenes: UnityScenes

Accesses native Unity scene snapshots and hierarchy roots.

Discovery is performed once per process attachment and only when the unity context is referenced by the script.

Examples

Read every loaded scene

state Unity ["game.exe"] {
    scenes = unity.scenes.loaded();
}
Generated from the SplitScript compiler's documentation catalogs.