Verse Library verse

06 Importing Definitions From Other Verse Files

Shows how to import modules and access nested submodules using dot notation in Verse code.

extracted-snippets/documentation/en-us/fortnite/modules-and-paths-in-verse/06-importing-definitions-from-other-verse-files.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/modules-and-paths-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/modules-and-paths-in-verse.md
# Section:    Importing Definitions from Other Verse Files
# Works and imports both base and submodules
using { base_module }
using { submodule }
# Works and imports only the submodule
using { base_module.submodule }
# Does not work
using { submodule }
using { base_module }

Comments

    Sign in to vote, comment, or suggest an edit. Sign in