Get RAPTOR

RaptorBakeHooks

Project hooks around a bake.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

A project with a custom lighting pipeline (for example a room render, probe chain and per-model lightmap groups) registers handlers here. RAPTOR shows the matching controls only while a handler is set. Each slot holds one handler: setting it again replaces the handler, and null clears it.

public static class RaptorBakeHooks

Properties

HasPerModelGroups

public static bool HasPerModelGroups { get; set; }

Whether the project gives every model its own lightmap group. While true, a bake backend may offer the Selection scope (RaptorBakeCaps.ScopeSelection).

HealsAfterRender

public static bool HealsAfterRender { get; set; }

Whether the project heals lightmap bindings after a render and then calls RaiseRenderHealed. A bake backend waits briefly for that call before its next phase.

IsModelInstance

public static Func<GameObject, RaptorModel, bool> IsModelInstance { get; set; }

Returns true when the object is the project's spawned copy of the model that shares its render. A Selection render keeps such copies lit with the model.

PrepareProbes

public static Action<RaptorModel> PrepareProbes { get; set; }

Fits the project's probe volume to a model before a render that bakes probes. This is the first half of the APV action; ProbesAfterRender is the second.

ProbesAfterRender

public static Action ProbesAfterRender { get; set; }

Runs after a lightmap render to bake the project's probes (the APV action).

Methods

RaiseRenderHealed

public static void RaiseRenderHealed()

Raises RenderHealed. Call it on the main thread when the project's post-render heal is done.

Events

RenderHealed

public static event Action RenderHealed;

Raised on the main thread by RaiseRenderHealed after the project's post-render heal.