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
Attributes
AssetTypeAttribute
chevron_left Attributes
attribute
AssetTypeAttribute

Constructors

functionsAssetTypeAttribute

Properties

data_objectCategorydata_objectExtensiondata_objectFlagsdata_objectIconColordata_objectNamedata_objectTargetType

Static Methods

functionsFindTypeByExtension
AssetTypeAttribute
Should be applied to a class that inherits from Sandbox.GameResource. Makes the class able to be stored as an asset on disk.
attribute Sandbox .
Sandbox.Engine

build Constructors 1

AssetTypeAttribute ()

data_object Properties 6

Category
string
Category of this game resource, for grouping in UI.
Extension
string
File extension for this game resource.
Flags
AssetTypeFlags
Flags for this asset type.
IconColor
string
Color of the bottom line and background gradient for this resource's thumbnail.
Name
string
The title of this game resource.
TargetType
Type
This gets filled in by the TypeLibrary when the class is registered, it shouldn't be changed manually.

functions Static Methods 1

FindTypeByExtension (extension)
TypeDescription
Find a resource type by its extension. The extension should have no period.

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