Get RAPTOR

RaptorPatchContext

The RAPTOR window, hotspot sheet and patch passed to a Patches route (RaptorHotspotPatchRoutes).

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorstructpreview, since 0.1.0

Passed to each route registered with RaptorHotspotPatchRoutes. When there is no target face, every field is null.

public readonly struct RaptorPatchContext

Constructors

RaptorPatchContext

public RaptorPatchContext(EditorWindow suite, RaptorHotspotAtlas sheet, string patchGuid)

Creates a context with every field set.

ParameterTypeDescription
suiteEditorWindowThe RAPTOR window.
sheetRaptorHotspotAtlasThe hotspot sheet.
patchGuidstringThe asset GUID of the sheet member holding the patch.

Fields

patchGuid

public readonly string patchGuid;

The asset GUID of the sheet member holding the face's patch. This is the face's forced patch if it has one, otherwise its current patch. Null when the face has no patch.

sheet

public readonly RaptorHotspotAtlas sheet;

The hotspot sheet on the first target face. Null when there is no target face or the face has no sheet.

suite

public readonly EditorWindow suite;

The RAPTOR window the button was pressed in, otherwise any open RAPTOR window. Null when none is open.