Constant

Type Constant
Library none
Keywords constant, system

Overview

Constants are variable "shortcuts" that are used to quickly access things such as the path to a system directory, or the native font for a target platform.

The following are valid constants to be used in your Solar2D projects:

Directory Constants

system.ResourceDirectory

system.DocumentsDirectory

system.TemporaryDirectory

system.CachesDirectory

Font Constants

native.systemFont

native.systemFontBold