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
PanelDockWindows
chevron_left Editor Classes
class
PanelDockWindows

Constructors

functionsPanelDockWindows

Properties

data_objectConfigureWindowdata_objectState

Methods

functionsDisposefunctionsDockAllfunctionsFloatfunctionsRestoreState
PanelDockWindows
Drags dock panels between desktop windows with panel-drawn chrome.
class Editor .
sealedSandbox.Tools

build Constructors 1

PanelDockWindows (main)
Enables desktop tab dragging for this host and its floating windows.

data_object Properties 2

ConfigureWindow
Action`1
Styles each floating root before content is transferred.
State
string
Saves the main layout and every floating window, including closed registrations, tab selection, splits, desktop position and UI size. Does not move panels. Call between drag/layout operations.

functions Methods 4

Dispose ()
Unhooks dragging and returns floating content if the main host survives.
DockAll ()
Returns all floating registrations, including closed panels, to the main host.
Float (id)
bool
Explicitly opens a registered panel in its own floating window. Returns false when unavailable or during a drag. The same content instance is retained; a lone floating panel is simply focused.
RestoreState (json)
bool
Restores a workspace using the existing content instances. Invalid data leaves the workspace untouched. Returns false during a drag/layout operation or if windows cannot be created. Desktop windows require the main host to belong to an editor PanelWindow. This saves layout, not the contents of each panel.
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