API ReferenceSandbox
public class Sandbox.AssetTypeAttribute : System.Attribute
Should be applied to a class that inherits from `Sandbox.GameResource`. Makes the class able to be stored as an asset on disk.
Constructors
Showing 1 constructors
public AssetTypeAttribute()
No results match this filter.
Methods
Showing 1 methods
public static Sandbox.TypeDescription FindTypeByExtension(string extension)
Find a resource type by its extension. The extension should have no period.
No results match this filter.
Properties
Showing 5 properties
public string Sandbox.AssetTypeAttribute.Category { get; set; }
Category of this game resource, for grouping in UI.
public string Sandbox.AssetTypeAttribute.Extension { get; set; }
File extension for this game resource.
public Sandbox.AssetTypeFlags Sandbox.AssetTypeAttribute.Flags { get; set; }
Flags for this asset type.
public string Sandbox.AssetTypeAttribute.Name { get; set; }
The title of this game resource.
public virtual sealed System.Type Sandbox.AssetTypeAttribute.TargetType { get; set; }
This gets filled in by the TypeLibrary when the class is registered, it shouldn't be changed manually.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.AssetTypeAttribute |