s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Attributes
AssetTypeAttribute
chevron_left Attributes
attribute
AssetTypeAttribute

Constructors

functionsAssetTypeAttribute

Properties

data_objectCategorydata_objectExtensiondata_objectFlagsdata_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 5

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.
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter