s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter