RaptorSuiteModelVariant
Creates a variant copy of a model (Duplicate as variant).
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
Only the two lightmap hooks are supported API.
public static class RaptorSuiteModelVariantFields
DetachLightmapGroups
public static Action<GameObject> DetachLightmapGroups;Clears every lightmap group under the copy, so the variant does not render into the original's group before its first bake. When null, the default, this step is skipped.
One provider at a time. The last assignment wins.
HealLightmapBindings
public static Func<int> HealLightmapBindings;Reapplies each room's directional lightmaps after a copy brings its lightmap storage with it. When null, the default, this step is skipped.
One provider at a time. The last assignment wins.
Methods
Numbered
public static string Numbered(string stem, Func<string, bool> taken)Gets the first free name formed from stem plus 01, 02 and so on.
| Parameter | Type | Description |
|---|---|---|
stem | string | The start of the name. |
taken | Func<string, bool> | The test for a taken name. |
Returns: The first free name.