s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
ResourcePublishContext
chevron_left
Classes
class
ResourcePublishContext
search
Constructors
functions
ResourcePublishContext
Properties
data_object
CanIncludeSourceFiles
data_object
CreateThumbnailFunction
data_object
IncludeCode
data_object
PublishingEnabled
data_object
ReasonForDisabling
Methods
functions
SetPublishingDisabled
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
.
sealed
Sandbox.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.