codeAPI Reference

IDefinitionResource interface

calendar_today May 12, 2026 schedule ~1 min read person PatrickJr verified 50

IDefinitionResource Interface

Interface for s&box game resources that have title and description metadata.

Properties

  • Title (string) - Display title for the resource
  • Description (string) - Description of the resource

Usage

Implemented by resource types that need to display metadata in editors and UI:

CSHARP
public interface IDefinitionResource
{
    public string Title { get; set; }
    public string Description { get; set; }
}

Implementations

These resources use the [AssetType] attribute to define their file extension and category in the asset browser.

Location

File: d:\GitHubStuff\sandbox\code\EngineAdditions.cs

Was this helpful?