isEditor

isEditor()

Returns true or false, depending on if your game is running in the editor or not.

This allows you to build editor specific code, such as displaying debugging information, or building in hidden controls.

// in the editor the screen is white, but when published it's black
onEachFrame() do
    if isEditor()
        fill( :white )
    else
        fill( :black )
    end
end