s&box docs

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

Methods

Showing 1 methods

public static Sandbox.TypeDescription FindTypeByExtension(string extension)

Find a resource type by its extension. The extension should have no period.

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 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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.AssetTypeAttribute

On this page