Get RAPTOR

RaptorModelStorageSlots.LightOp

Gets the lighting state shown for a model: raw, stale or baked.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editordelegatepreview, 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.

ValueStateMeaning
0RAWThe model has no stored lightmap and loads dark
1STALEThe mesh was edited since its bake, or the lightmap is not certified against it
2BAKEDThe model has a current lightmap

Only providers fill this slot. The built-in store leaves it null, and no lighting chip is shown.

ParameterTypeDescription
modelRaptorModelThe model.

Returns: 0, 1 or 2.