Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. GameState
  5. GoLevel

GoLevel

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Parameters:

  • name (optional)
    • The name of the level, if none is provided restart the same level again

Example:

1
2
--Try to go to a level, if it doesn't exist restart this level
obj.GoLevel("MySecondLevel")
Tags
Was this article helpful to you? Yes No

How can we help?