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
gamejams
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
Get s&box
Sign in with Steam
Api
Editor Classes
ProjectPublisher
CropToSquare
chevron_left Editor Classes
class
ProjectPublisher

Properties

data_objectFilesdata_objectHasWorkshopUploaddata_objectIsWorkshopUploadeddata_objectManifestdata_objectMissingFileCountdata_objectMissingFileSizedata_objectOnProgressChangeddata_objectTargetPackageIdentdata_objectTotalFileCountdata_objectWorkshopBytesDonedata_objectWorkshopBytesTotaldata_objectWorkshopFileCountdata_objectWorkshopTargetItemIddata_objectWorkshopUploadSizedata_objectWorkshopUploadStatusdata_objectWorkshopUrldata_objectWorkshopWarning

Methods

functionsAddCodePackageReferencefunctionsAddFilefunctionsGetGameSettingsfunctionsPrePublishfunctionsPublishfunctionsSetChangeDetailsfunctionsSetMetafunctionsSetThumbnailfunctionsSetWorkshopItemfunctionsSetWorkshopVisibilityfunctionsUploadFiles

Static Fields

crop_dinMaxPickedWorkshopTagscrop_dinWorkshopTagsMetaKey

Static Methods

functionsCanPublishFilefunctionsCropToSquarefunctionsFromAssetfunctionsFromProjectfunctionsGetPublishedWorkshopItemsAsyncfunctionsGetWorkshopItemIdAsyncfunctionsGetWorkshopItemInfoAsyncfunctionsPlayerTagsfunctionsPublishesToWorkshopfunctionsWorkshopTagChoices
CropToSquare
The middle of this image, cut square - Steam shows workshop items' main thumbnails square. A new bitmap.
methodstatic
static Bitmap CropToSquare (Bitmap image)

Parameters

NameTypeDescription
image Bitmap

Returns

TypeDescription
Bitmap
Declared in Editor.ProjectPublisher ยท Assembly Sandbox.Tools
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