s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam
Api
Editor Classes
CodeEditor
chevron_left Editor Classes
class
CodeEditor

Static Properties

data_objectCurrentdata_objectTitle

Static Methods

functionsAddonSolutionPathfunctionsCanOpenFilefunctionsFindSolutionFromPathfunctionsOpenAddonfunctionsOpenFilefunctionsOpenSolution
CodeEditor
For opening source code files in whatever code editor the user has selected.
class Editor .
staticsealedabstractSandbox.Tools

data_object Static Properties 2

Current
ICodeEditor
The current code editor we're using.
Title
string
Friendly name for our current code editor.

functions Static Methods 6

AddonSolutionPath ()
string
CanOpenFile (path)
bool
Returns true if the file exists and can be opened by the current code editor.
FindSolutionFromPath (path)
string
Finds a .sln this path belongs to, this is pretty much entirely for internal usage to open engine slns
OpenAddon (addon)
OpenFile (location)
OpenSolution ()
Open the solution of all s&box projects
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter