Get RAPTOR

IRaptorPackProvider

Adds packs to the material library from code.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorinterfacepreview, since 0.1.0

Register an instance with RaptorLibrary.RegisterProvider, typically from an [InitializeOnLoad] static constructor. GetPacks is called each time the library builds its rows: on first use, when a provider registers or unregisters, when the user rows change, and on RaptorLibrary.Refresh. Keep it fast and free of side effects.

public interface IRaptorPackProvider

Properties

Id

string Id { get; }

A stable identifier. Registering a provider with the same id replaces the existing one.

Order

int Order { get; }

The position of this provider's rows. Providers are listed in ascending order, then by id. User rows come after all providers.

Methods

GetPacks

IEnumerable<RaptorPackEntry> GetPacks()

Gets the provider's rows in sidebar order.

Returns: The rows.

  • RaptorPackEntry: One row of the material library: a folder of materials shown as a pack in the Materials drawer.
  • RaptorLibrary: The material library behind the Materials drawer: provider rows, then user rows from the project settings.