s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Attributes
AssetTypeAttribute
chevron_left
Attributes
attribute
AssetTypeAttribute
Constructors
functions
AssetTypeAttribute
Properties
data_object
Category
data_object
Extension
data_object
Flags
data_object
IconColor
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
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.