RaptorModelStorageSlots.LightOp
Gets the lighting state shown for a model: raw, stale or baked.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | delegate | preview, since 0.1.0 |
public delegate int LightOp(RaptorModel model);Gets the lighting state shown for a model, which is either a scene copy or a saved prefab's root.
| Value | State | Meaning |
|---|---|---|
| 0 | RAW | The model has no stored lightmap and loads dark |
| 1 | STALE | The mesh was edited since its bake, or the lightmap is not certified against it |
| 2 | BAKED | The model has a current lightmap |
Only providers fill this slot. The built-in store leaves it null, and no lighting chip is shown.
| Parameter | Type | Description |
|---|---|---|
model | RaptorModel | The model. |
Returns: 0, 1 or 2.
Related types
- RaptorModelStorageSlots: Slots a model provider fills to replace Save, Save & unload, Load and Rename.