# Sandbox.AssetTypeAttribute

Should be applied to a class that inherits from [Sandbox.GameResource](/api/Sandbox.GameResource).
Makes the class able to be stored as an asset on disk.

- Kind: attribute
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`

## Constructors

- [`AssetTypeAttribute`](/api/Sandbox.AssetTypeAttribute/.ctor)

## Properties

- [`Category`](/api/Sandbox.AssetTypeAttribute/Category): Category of this game resource, for grouping in UI.
- [`Extension`](/api/Sandbox.AssetTypeAttribute/Extension): File extension for this game resource.
- [`Flags`](/api/Sandbox.AssetTypeAttribute/Flags): Flags for this asset type.
- [`IconColor`](/api/Sandbox.AssetTypeAttribute/IconColor): Color of the bottom line and background gradient for this resource's thumbnail.
- [`Name`](/api/Sandbox.AssetTypeAttribute/Name): The title of this game resource.
- [`TargetType`](/api/Sandbox.AssetTypeAttribute/TargetType): This gets filled in by the TypeLibrary when the class is registered, it shouldn't be changed manually.

## Methods

- [`FindTypeByExtension`](/api/Sandbox.AssetTypeAttribute/FindTypeByExtension): Find a resource type by its extension. The extension should have no period.
