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

Constructors

functionsAssetTypeAttribute

Properties

data_objectCategorydata_objectExtensiondata_objectFlagsdata_objectIconColordata_objectIsUncompileddata_objectNamedata_objectTargetType

Static Methods

functionsFindTypeByExtension
AssetTypeAttribute
Defines a disk asset for a Sandbox.Resource class. Compiled JSON assets inherit from Sandbox.GameResource; uncompiled assets receive their source through Resource.OnLoaded.
attribute Sandbox .
Sandbox.Engine

build Constructors 1

AssetTypeAttribute ()

data_object Properties 7

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.
IsUncompiled
bool
Whether the source file is loaded and published directly, without a compiled counterpart.
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