s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Classes
ResourcePublishContext
chevron_left
Classes
class
ResourcePublishContext
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.