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
Editor Classes
AssetType
chevron_left
Editor Classes
class
AssetType
search
Constructors
functions
AssetType
Properties
data_object
Category
data_object
Color
data_object
FileExtension
data_object
FileExtensions
data_object
Flags
data_object
FriendlyName
data_object
HasDependencies
data_object
HasEditor
data_object
HiddenByDefault
data_object
Icon128
data_object
Icon16
data_object
Icon256
data_object
Icon64
data_object
IsGameResource
data_object
IsSimpleAsset
data_object
PrefersIconThumbnail
data_object
ResourceType
Static Properties
data_object
All
data_object
Animation
data_object
AnimationGraph
data_object
ImageFile
data_object
MapFile
data_object
Material
data_object
Model
data_object
Shader
data_object
SoundEvent
data_object
SoundFile
data_object
Soundscape
data_object
Texture
Static Methods
functions
Find
functions
FromExtension
functions
FromType
AssetType
class
Editor
.
Sandbox.Tools
build
Constructors
1
AssetType
(
)
data_object
Properties
17
Category
string
Category of this asset type, for grouping in UI.
Color
Color
Color that represents this asset, for use in the asset browser.
FileExtension
string
Primary file extension for this asset type.
FileExtensions
IReadOnlyList`1
All file extensions for this asset type.
Flags
AssetTypeFlags
Flags for this asset type
FriendlyName
string
Name of the asset type for UI purposes.
HasDependencies
bool
This asset type can have dependencies
HasEditor
bool
Returns true if there is an editor available for this asset type.
HiddenByDefault
bool
This asset type is hidden by default from asset browser, etc.
Icon128
Pixmap
128x128 icon for this asset type.
Icon16
Pixmap
16x16 icon for this asset type.
Icon256
Pixmap
256x256 icon for this asset type.
Icon64
Pixmap
64x64 icon for this asset type.
IsGameResource
bool
Whether this asset type is a custom game resource or not.
IsSimpleAsset
bool
A simple asset is used by something else. It never exists in the game on its own.
PrefersIconThumbnail
bool
Use asset type icon, over any preview image.
ResourceType
Type
Type that will be returned by Editor.Asset.LoadResource.
data_object
Static Properties
12
All
IReadOnlyCollection`1
All currently registered asset types, including the base types such as models, etc.
Animation
AssetType
Animation (.vanim) asset type.
AnimationGraph
AssetType
Animation Graph (.vanmgrph) asset type.
ImageFile
AssetType
Image source (.png or .jpg) asset type.
MapFile
AssetType
A map (.vmap) asset type.
Material
AssetType
Material (.vmat) asset type.
Model
AssetType
Model (.vmdl) asset type.
Shader
AssetType
Shader (.shader) asset type.
SoundEvent
AssetType
A sound event
SoundFile
AssetType
Sound (.wav, .ogg or .mp3) asset type.
Soundscape
AssetType
A soundscape
Texture
AssetType
Texture (.vtex) asset type.
functions
Static Methods
3
Find
(
name
,
allowPartials
)
AssetType
Find an asset type by name or extension match.
FromExtension
(
extension
)
AssetType
FromType
(
t
)
AssetType
For a type (ie Texture, Material, Surface) return the appropriate AssetType. Returns null if can't resolve.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.