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
Classes
ResourcePublishContext
chevron_left Classes
class
ResourcePublishContext

Constructors

functionsResourcePublishContext

Properties

data_objectCanIncludeSourceFilesdata_objectCreateThumbnailFunctiondata_objectIncludeCodedata_objectPublishingEnableddata_objectReasonForDisabling

Methods

functionsSetPublishingDisabled
ResourcePublishContext
Created by the editor when publishing a resource, passed into Resource.ConfigurePublishing. This allows the resource to configure how it wants to be published.
class Sandbox .
sealedSandbox.Engine

build Constructors 1

ResourcePublishContext ()

data_object Properties 5

CanIncludeSourceFiles
bool
If true then we'll offer an option to upload source files with this asset. This will make it easier for people who want to download and add it to their project, but make their own changes.
CreateThumbnailFunction
Func`1
A function to create a thumbnail for this resource. If not null, this will be called to create the thumbnail.
IncludeCode
bool
If true we'll include the addon's code with this
PublishingEnabled
bool
Can be set to false using SetPublishingDisabled
ReasonForDisabling
string
If publishing is disabled this will be the message to display why.

functions Methods 1

SetPublishingDisabled (reason)
Allows you to disable publishing for this resource, with a reason that'll be shown to the user.
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