s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Attributes
AssetTypeAttribute
chevron_left
Attributes
attribute
AssetTypeAttribute
Constructors
functions
AssetTypeAttribute
Properties
data_object
Category
data_object
Extension
data_object
Flags
data_object
Name
data_object
TargetType
Static Methods
functions
FindTypeByExtension
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.