RaptorPatchContext
The RAPTOR window, hotspot sheet and patch passed to a Patches route (RaptorHotspotPatchRoutes).
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | struct | preview, since 0.1.0 |
Passed to each route registered with RaptorHotspotPatchRoutes. When there is no target face, every field is null.
public readonly struct RaptorPatchContextConstructors
RaptorPatchContext
public RaptorPatchContext(EditorWindow suite, RaptorHotspotAtlas sheet, string patchGuid)Creates a context with every field set.
| Parameter | Type | Description |
|---|---|---|
suite | EditorWindow | The RAPTOR window. |
sheet | RaptorHotspotAtlas | The hotspot sheet. |
patchGuid | string | The 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.
Related types
- RaptorHotspotPatchRoutes: Routes for the Face panel's Patches button and its Edit sheet chip.
- RaptorHotspotAtlas: Authoring data for a hotspot sheet: a trim or panel material and its patches.