s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Attributes
GameResourceAttribute
chevron_left Attributes
attribute
GameResourceAttribute

Constructors

functionsGameResourceAttribute

Properties

data_objectCanEmbedremove_circleDescriptiondata_objectIcondata_objectIconBgColordata_objectIconFgColor
GameResourceAttribute
attribute Sandbox .account_tree extends AssetTypeAttribute
obsoleteSandbox.Engine

build Constructors 1

GameResourceAttribute (title, extension, description)

data_object Properties 5

CanEmbed
bool
Can this GameResource be an embedded resource? Allows the ability to edit a resource inline instead of saving it to a specific file.
Description
obsoletestring
Description of this game resource. This is obsolete, we'll use the xml summary description.
Icon
string
Icon to be used for this asset Can be an absolute path of a PNG Or a material icon for this game resource's thumbnail.
IconBgColor
string
Background color for this resource's thumbnail.
IconFgColor
string
Foreground color (icon color) for this resource's thumbnail.

Inheritance

AssetTypeAttribute
GameResourceAttribute
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